/* =================================================
   PROSPAIRROW - CONSOLIDATED CSS STYLES
   ================================================= */

/* =================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================= */
:root {
    /* Spacing System (8px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Colors */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================
   BASE STYLES & RESET
   ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: var(--space-3xl);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Landing page specific container */
.landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* =================================================
   HEADER STYLES
   ================================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: var(--space-lg);
    z-index: 100;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* Sticky header when scrolled */
.header.scrolled {
    padding: var(--space-lg) var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 200;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.1;
}

.header h1 a {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header h1 a:hover {
    transform: scale(1.02);
}

.header h1 img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.header h1 a:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.header p {
    color: #666666;
    font-size: 1.1em;
    font-weight: 400;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
    margin: 0;
    padding-left: 65px;
    opacity: 0.9;
    line-height: 1.618;
}

/* =================================================
   LAYOUT COMPONENTS
   ================================================= */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.card:hover {
    /* Removed hover animation */
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

/* =================================================
   LANDING PAGE SPECIFIC STYLES
   ================================================= */
.steps-container {
    display: grid;
    gap: 25px;
}

.step-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(45deg, #2196f3, #1976d2);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.step-title {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.step-content {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.step-action {
    margin-top: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.feature-item {
    background: #f8f9fa;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid #e9ecef;
}

.feature-item h5,
.feature-item p,
.feature-item #subscription-status,
.feature-item #subscription-actions,
.feature-item .btn,
.feature-item a.btn {
    text-align: center;
}

.feature-item .btn,
.feature-item a.btn,
.feature-item button.btn {
    max-width: 360px;
    width: 100%;
    margin: 15px auto 0;
    display: block;
}

.feature-item #subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.feature-item #subscription-actions .btn,
.feature-item #subscription-actions a {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.btn-primary:hover,
a.btn-primary:hover {
    color: white !important;
    transition: all var(--transition-base);
}

.feature-item:hover {
    /* Removed hover animation */
}

.feature-icon {
    display: none !important;
    font-size: 2.5em;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-description {
    color: #7f8c8d;
    font-size: 0.95em;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #2196f3;
}

.highlight-box h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
}

.status-indicator {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
}

.status-pending {
    background: #fff3e0;
    color: #f57f17;
}

.status-completed {
    background: #e8f5e8;
    color: #2e7d32;
}

/* =================================================
   BUTTON STYLES
   ================================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1976d2, #1565c0);
    color: white !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #4caf50, #388e3c);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #388e3c, #2e7d32);
    color: white !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-warning {
    background: linear-gradient(45deg, #ff9800, #f57f17);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #f57f17, #e65100);
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-info {
    background: linear-gradient(45deg, #00bcd4, #0097a7);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(45deg, #0097a7, #006064);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #9e9e9e, #757575);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #757575, #424242);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

/* Landing page specific button styles */
.landing-container .btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
}

.landing-container .btn:hover {
    transform: translateY(-2px);
}

/* =================================================
   INDUSTRY GRID STYLES
   ================================================= */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.industry-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.industry-item.selected {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    border-color: #0d47a1;
}

.industry-item input {
    margin-right: 10px;
    transform: scale(1.2);
}

.industry-code {
    font-weight: bold;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* =================================================
   FORM CONTROLS
   ================================================= */
.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

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

.control-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

select, input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.url-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
}

.url-input:focus {
    border-color: #3498db;
    outline: none;
}

.mapping-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* =================================================
   PROSPECT CARD STYLES
   ================================================= */
.prospect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.prospect-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    width: 100%;
}

.prospect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.prospect-card.selected {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.prospect-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.prospect-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 8px solid #764ba2;
}

.prospect-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    color: white !important;
    line-height: 1.2;
    flex: 1;
    padding-right: 15px;
}

.prospect-industry {
    font-size: 0.9em;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 12px;
}

.prospect-details {
    padding: 20px;
    background: #fafbfc;
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.detail-value {
    font-size: 0.9em;
    color: #374151;
    font-weight: 500;
    margin: 0;
    word-break: break-word;
}

.detail-value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =================================================
   ENRICHMENT STATUS STYLES
   ================================================= */
.enrichment-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    white-space: nowrap;
}

.enrichment-status.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.enrichment-status.in_progress {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.enrichment-status.failed {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.enrichment-status.not_started {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.4);
    color: #d1d5db;
}

.enrichment-summary {
    background: white;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: fit-content;
}

.enrichment-metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-number {
    font-size: 1.2em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.metric-label {
    font-size: 0.7em;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
}

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

/* =================================================
   PROSPECT ACTION STYLES
   ================================================= */
.primary-actions {
    padding: 0 20px 16px 20px;
}

.prospect-actions {
    padding: 0;
    margin: 0;
}

.prospect-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.prospect-actions-row.three-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.prospect-actions-row.two-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prospect-actions-row.three-buttons .btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    flex: 1;
    min-height: 40px;
}

.prospect-actions-row.three-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prospect-actions-row.three-buttons .btn-info {
    border-color: #10b981;
    color: #10b981;
}

.prospect-actions-row.three-buttons .btn-info:hover {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981;
}

.prospect-actions-row.three-buttons .btn-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.prospect-actions-row.three-buttons .btn-warning:hover {
    background: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b;
}

.prospect-actions-row.three-buttons .btn-primary {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.prospect-actions-row.three-buttons .btn-primary:hover {
    background: #0ea5e9 !important;
    color: white !important;
    border-color: #0ea5e9;
}

.prospect-actions-row.two-buttons .btn {
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-height: 40px;
}

.prospect-actions-row.two-buttons .btn:hover {
    transform: translateY(-1px);
}

.prospect-actions-row.two-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.prospect-actions-row.two-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.prospect-actions-row.two-buttons .btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.prospect-actions-row.two-buttons .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.prospect-actions-row.two-buttons .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.prospect-actions-row.two-buttons .btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}

.btn-icon {
    font-size: 1.1em;
    display: inline-block;
}

/* =================================================
   CTA AND UTILITY SECTIONS
   ================================================= */
.cta-section {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
}

.position-solution-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.position-solution-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.utility-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.utility-btn,
.btn[style*="background: #6c757d"],
.btn-secondary,
.btn-warning[onclick*="archiveProspect"] {
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 6px !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.utility-btn:hover,
.btn[style*="background: #6c757d"]:hover,
.btn-secondary:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
}


.utility-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e0e0e0;
}

.utility-btn:disabled:hover {
    background-color: #e0e0e0;
    transform: none;
}


.btn-warning[onclick*="archiveProspect"] {
    color: #d97706 !important;
    border-color: #fbbf24 !important;
}

.btn-warning[onclick*="archiveProspect"]:hover {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
}

/* =================================================
   TABS SYSTEM
   ================================================= */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #2196f3;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #2196f3;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    position: absolute;
    left: 50%;
    transform-origin: center;
    transform: translateX(-50%);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 10px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab.active {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        align-self: flex-start;
    }
    
    .tabs {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .tabs.mobile-open {
        max-height: 500px;
        padding: 10px 5px !important;
        margin-bottom: 20px !important;
        border: 1px solid #e0e0e0;
        opacity: 1;
        visibility: visible;
    }
    
    .tab {
        width: 100%;
        margin-bottom: 8px;
        padding: 15px 20px;
        border-radius: 6px;
        background: #f8f9fa;
        transition: all 0.2s ease;
    }
    
    .tab:hover {
        background: #e9ecef;
    }
    
    .tab.active {
        background: linear-gradient(45deg, #2196f3, #1976d2);
        color: white;
    }
    
    .tab:last-child {
        margin-bottom: 0;
    }
}

.tab-content {
    display: none;
}

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

/* =================================================
   RESULTS AND STATS
   ================================================= */
.results-section {
    margin-top: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.data-stat {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.data-stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #2196f3;
}

.data-stat-label {
    color: #666;
    margin-top: 5px;
}

/* =================================================
   LOADING AND SPINNER STYLES
   ================================================= */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.loading-overlay.show {
    opacity: 1;
}

.loading-overlay .loading-content {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    margin: 0 var(--space-lg);
}

.loading-overlay .loading-content .spinner {
    margin-bottom: var(--space-lg);
}

.loading-overlay .loading-content h3 {
    margin-bottom: var(--space-sm);
    color: #2c3e50;
    font-size: 1.25em;
}

.loading-overlay .loading-content p {
    color: #7f8c8d;
    font-size: 0.95em;
    margin: 0;
}

/* Inline Loading Spinner */
.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--space-sm);
    vertical-align: middle;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-md {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loading .btn-text {
    opacity: 0;
}

/* Container Loading State */
.container-loading {
    position: relative;
    min-height: 200px;
}

.container-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.container-loading::after {
    content: attr(data-loading-text);
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    color: #7f8c8d;
    font-size: 0.95em;
    white-space: nowrap;
}

/* Skeleton Loading (for content placeholders) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: var(--radius-md);
}

/* =================================================
   MODAL STYLES
   ================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* =================================================
   MESSAGE STYLES
   ================================================= */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Toast notification styles */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-message {
    background: #e74c3c;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    word-wrap: break-word;
}

.toast-message.toast-success {
    background: #27ae60;
}

.toast-message.toast-error {
    background: #e74c3c;
}

.toast-message.toast-warning {
    background: #f39c12;
}

.toast-message.toast-info {
    background: #3498db;
}

/* Hide old message blocks - they should all be toasts now */
.message:not(.toast-message) {
    display: none !important;
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    #toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-message {
        max-width: 100%;
        transform: translateY(100px);
    }
    
    .toast-message.show {
        transform: translateY(0);
    }
}

/* =================================================
   CHECKBOX STYLES
   ================================================= */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"]:disabled + label {
    color: #ccc;
    cursor: not-allowed;
}

.checkbox-group input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* =================================================
   CONTACT/NEWS/SOCIAL MEDIA LISTS
   ================================================= */
.contact-list, .news-list, .social-media-list {
    display: grid;
    gap: 15px;
}

.contact-item, .news-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.news-item {
    border-left-color: #4caf50;
}

.contact-name, .news-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-title {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9em;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.news-content {
    color: #555;
    line-height: 1.5;
}

/* =================================================
   CONFIDENCE AND SENTIMENT SCORES
   ================================================= */
.confidence-score, .sentiment {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.confidence-high, .sentiment-positive {
    background: #e8f5e8;
    color: #4caf50;
}

.confidence-medium, .sentiment-neutral {
    background: #fff3e0;
    color: #ff9800;
}

.confidence-low, .sentiment-negative {
    background: #ffebee;
    color: #f44336;
}

.sentiment-neutral {
    background: #f5f5f5;
    color: #757575;
}

/* =================================================
   SOCIAL MEDIA SPECIFIC STYLES
   ================================================= */
.social-media-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0077b5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-media-item.linkedin {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border-left: 4px solid #0077b5;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.1);
}

.social-media-item.twitter {
    border-left-color: #1da1f2;
}

.social-media-item.facebook {
    border-left-color: #4267b2;
}

.social-media-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.social-media-icon.linkedin {
    background: #0077b5;
}

.social-media-icon.twitter {
    background: #1da1f2;
}

.social-media-icon.facebook {
    background: #4267b2;
}

.social-media-details {
    flex: 1;
}

.social-media-platform {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.social-media-url {
    color: #0077b5;
    text-decoration: none;
    word-break: break-all;
}

.social-media-url:hover {
    text-decoration: underline;
}

.linkedin-highlight {
    background: linear-gradient(45deg, #0077b5, #005582) !important;
    color: white !important;
    font-weight: bold !important;
}

/* =================================================
   SOLUTION POSITIONING STYLES
   ================================================= */
.positioning-message {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

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

.message-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.message-type-short {
    background: #e3f2fd;
    color: #1976d2;
}

.message-type-medium {
    background: #fff3e0;
    color: #f57f17;
}

.message-type-long {
    background: #e8f5e8;
    color: #2e7d32;
}

.message-subject {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.message-body {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
    margin: 15px 0;
    color: #555;
    border-left: 4px solid #2196f3;
    white-space: pre-line;
}

.message-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f1f3f4;
    border-radius: 8px;
    font-size: 0.9em;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

.meta-value {
    color: #7f8c8d;
}

.copy-button {
    background: linear-gradient(45deg, #4caf50, #388e3c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    font-weight: 600;
}

.copy-button:hover {
    background: linear-gradient(45deg, #388e3c, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.copy-button.copied {
    background: linear-gradient(45deg, #ff9800, #f57f17);
}

.copy-button.template {
    background: linear-gradient(45deg, #2196f3, #1976d2);
}

.copy-button.template:hover {
    background: linear-gradient(45deg, #1976d2, #1565c0);
}

.positioning-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.positioning-error {
    background: #ffebee;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #721c24;
    margin: 20px 0;
}

.positioning-stats {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.positioning-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.positioning-tips ul {
    text-align: left;
    color: #555;
    margin: 10px 0;
    padding-left: 20px;
}

.positioning-tips li {
    margin-bottom: 8px;
}

.setup-required-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

/* =================================================
   COMPETITOR ANALYSIS STYLES
   ================================================= */
#competitorProspectsTable tbody tr {
    transition: opacity 0.2s ease;
}

#competitorProspectsTable tbody tr[style*="display: none"] {
    opacity: 0;
}

.competitor-card {
    transition: transform 0.2s ease;
}

.competitor-card:hover {
    transform: translateY(-2px);
}

.progress {
    height: 8px;
}

.modal-xl .card {
    height: 100%;
}

.badge {
    font-size: 0.75em;
}

/* =================================================
   IMPORT TAB SPECIFIC STYLES
   ================================================= */
.import-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    gap: 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.75;
    text-align: center;
    transition: opacity 0.3s ease;
    position: relative;
    flex: 0 0 auto;
    padding: 0 40px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(50% + 30px);
    width: 80px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step.active::after {
    background: #3498db;
}

.step.completed::after {
    background: #27ae60;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
    color: #495057;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    font-size: 14px;
    position: relative;
    z-index: 1;
    border: 2px solid #dee2e6;
}

.step.active .step-number {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.step.completed .step-number {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.step > div:last-child {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.step.active > div:last-child {
    color: #3498db;
    font-weight: 600;
}

.step.completed > div:last-child {
    color: #27ae60;
}

.import-section {
    margin-bottom: 25px;
}

.import-section.hidden {
    display: none;
}

.column-mapping {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.column-header {
    font-weight: bold;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    text-align: center;
}

.column-item {
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-table th,
.preview-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.preview-table tbody tr:hover {
    background: #f8f9fa;
}

.import-summary {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.import-progress {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.import-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* =================================================
   MANUAL PROSPECT CREATION STYLES
   ================================================= */
#add-prospect-form {
    transition: all 0.3s ease;
}

#add-prospect-form input,
#add-prospect-form select,
#add-prospect-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#add-prospect-form input:focus,
#add-prospect-form select:focus,
#add-prospect-form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

#add-prospect-form label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.control-group small {
    display: block;
    margin-top: 2px;
}





        .hero-section {
            min-height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding-bottom: var(--space-3xl);
        }

        .hero-card {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border-radius: 20px;
            padding: 60px 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 600px;
            margin: 20px;
        }

        .google-btn {
            background: #4285f4;
            border: none;
            border-radius: 50px;
            padding: 15px 30px;
            font-size: 16px;
            font-weight: 500;
            color: white;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
        }

        .google-btn:hover {
            background: #3367d6;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
            color: white;
            text-decoration: none;
        }

        .google-icon {
            background: white;
            border-radius: 50%;
            padding: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-item {
            text-align: left;
            padding: 20px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 15px;
            border-left: 4px solid #667eea;
        }

        .feature-icon {
            font-size: 2rem;
            color: #667eea;
            margin-bottom: 15px;
        }

        .status-indicator {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }

        .status-authenticated {
            background: rgba(76, 175, 80, 0.2);
            color: #2e7d32;
            border: 2px solid rgba(76, 175, 80, 0.3);
        }

        .status-guest {
            background: rgba(156, 39, 176, 0.2);
            color: #7b1fa2;
            border: 2px solid rgba(156, 39, 176, 0.3);
        }

        .user-section {
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(76, 175, 80, 0.1);
            border-radius: 15px;
            border-left: 4px solid #4caf50;
            text-align: center;
        }

        .user-section #login-nav {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .btn-dashboard {
            background: #4caf50;
            border: none;
            border-radius: 50px;
            padding: 15px 30px;
            color: white;
            display: block;
            text-align: center;
            max-width: 360px;
            width: 100%;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-dashboard:hover {
            background: #45a049;
            color: white !important;
            text-decoration: none;
        }

        .btn-logout {
            background: #ff5722;
            border: none;
            border-radius: 50px;
            padding: 10px 25px;
            color: white;
            display: block;
            text-align: center;
            max-width: 360px;
            width: 100%;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .btn-logout:hover {
            background: #e64a19;
            color: white;
            text-decoration: none;
        }

        .payment-form {
            max-width: 400px;
            margin: var(--space-lg) auto;
            padding: var(--space-xl);
            border: 1px solid #ddd;
            border-radius: var(--radius-md);
            background: white;
            box-shadow: var(--shadow-lg);
            position: relative;
            top: 50%;
            transform: translateY(-50%);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-60%);
            }
            to {
                opacity: 1;
                transform: translateY(-50%);
            }
        }

        .card-element {
            padding: var(--space-md);
            border: 1px solid #ddd;
            border-radius: var(--radius-sm);
            margin-bottom: var(--space-md);
            transition: border-color var(--transition-fast);
        }
        
        .card-element:focus-within {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .payment-errors {
            color: var(--color-error);
            font-size: 14px;
            margin-top: var(--space-md);
            padding: var(--space-sm);
            background: rgba(239, 68, 68, 0.1);
            border-radius: var(--radius-sm);
            border-left: 3px solid var(--color-error);
        }

        .payment-button {
            background: var(--color-primary);
            color: white;
            border: none;
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--radius-sm);
            cursor: pointer;
            width: 100%;
            font-size: 16px;
            font-weight: 600;
            transition: all var(--transition-fast);
        }
        
        .payment-button:hover:not(:disabled) {
            background: var(--color-secondary);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .payment-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .payment-success {
            color: var(--color-success);
            text-align: center;
            padding: var(--space-lg);
            display: none;
        }





        /* beginning of Rich's reformat */


                .container {
                    max-width: 1400px;
                    margin: 0 auto;
                    padding: 16px;
                }

                /* Modern Bento-Style Header */
                .header-container {
                    background: rgba(255, 255, 255, 0.95);
                    backdrop-filter: blur(20px);
                    border-radius: 24px;
                    padding: 24px;
                    margin-bottom: 20px;
                    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                }

                .header-grid {
                    display: grid;
                    grid-template-columns: 1fr auto auto;
                    gap: 20px;
                    align-items: center;
                }

                /* Brand Section */
                .brand-section {
                    display: flex;
                    align-items: center;
                    gap: 16px;
                }

               ..brand-icon {
                    width: 64px;
                    height: 40px;
                    background: rgba(255, 255, 255, 0.95);
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-shrink: 0;
                    padding: 6px;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
                    border: 1px solid rgba(255, 255, 255, 0.3);
                }

                .brand-icon img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }

                .brand-content {
                    min-width: 0;
                }

                .brand-title {
                    font-size: 24px;
                    font-weight: 700;
                    color: #1a1a1a;
                    margin: 0;
                    line-height: 1.2;
                }

                .brand-subtitle {
                    font-size: 14px;
                    color: #6b7280;
                    margin: 0;
                    line-height: 1.3;
                }

                /* Quick Actions */
                .quick-actions {
                    display: flex;
                    gap: 8px;
                    align-items: center;
                }

                .quick-action-btn {
                    width: 44px;
                    height: 44px;
                    border-radius: 12px;
                    border: none;
                    background: rgba(255, 255, 255, 0.8);
                    backdrop-filter: blur(10px);
                    cursor: pointer;
                    transition: all 0.2s ease;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
                }

                .quick-action-btn:hover {
                    background: rgba(255, 255, 255, 1);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                }

                .quick-action-btn svg {
                    width: 20px;
                    height: 20px;
                    stroke: #374151;
                }

                /* Notification Button Specific Styles */
                .notification-btn {
                    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                    color: white;
                }

                .notification-btn:hover {
                    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
                    transform: translateY(-2px);
                    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
                }

                .notification-btn svg {
                    stroke: white;
                }

                .notification-badge {
                    position: absolute;
                    top: -4px;
                    right: -4px;
                    background: #ef4444;
                    color: white;
                    border-radius: 10px;
                    min-width: 20px;
                    height: 20px;
                    display: none;
                    align-items: center;
                    justify-content: center;
                    font-size: 11px;
                    font-weight: 600;
                    border: 2px solid white;
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                }

                /* Profile Section */
                .profile-section {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    padding: 8px 16px 8px 8px;
                    background: rgba(255, 255, 255, 0.6);
                    border-radius: 16px;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    backdrop-filter: blur(10px);
                }

                .profile-section:hover {
                    background: rgba(255, 255, 255, 0.9);
                    transform: translateY(-1px);
                }

                .profile-avatar {
                    width: 36px;
                    height: 36px;
                    border-radius: 10px;
                    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-weight: 600;
                    font-size: 14px;
                }

                .profile-info {
                    display: flex;
                    flex-direction: column;
                    min-width: 0;
                }

                .profile-name {
                    font-size: 14px;
                    font-weight: 600;
                    color: #1a1a1a;
                    line-height: 1.2;
                }

                .profile-status {
                    font-size: 12px;
                    color: #6b7280;
                    line-height: 1.2;
                }

                /* Notification Dropdown - FIXED POSITIONING */
                .notification-dropdown {
                    position: fixed !important;
                    top: 90px;
                    right: 20px;
                    width: 400px;
                    max-height: 600px;
                    background: rgba(255, 255, 255, 0.98);
                    backdrop-filter: blur(20px);
                    border-radius: 20px;
                    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    z-index: 99999 !important;
                    display: none;
                    overflow: hidden;
                }

                .notification-header {
                    padding: 20px 24px 16px;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                    background: rgba(255, 255, 255, 0.8);
                }

                .notification-header-title {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 8px;
                }

                .notification-title {
                    font-size: 18px;
                    font-weight: 700;
                    color: #1a1a1a;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
                /* Referral Button Specific Styles */
                .referral-btn {
                    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                    color: white;
                }

                .referral-btn:hover {
                    background: linear-gradient(135deg, #059669 0%, #047857 100%);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
                }

                .referral-btn svg {
                    stroke: white;
                }
                .mark-all-read-btn {
                    background: none;
                    border: none;
                    color: #3b82f6;
                    font-size: 13px;
                    font-weight: 600;
                    cursor: pointer;
                    padding: 4px 8px;
                    border-radius: 6px;
                    transition: all 0.2s ease;
                }

                .mark-all-read-btn:hover {
                    background: rgba(59, 130, 246, 0.1);
                }

                .notification-subtitle {
                    font-size: 13px;
                    color: #6b7280;
                }

                .notification-list {
                    max-height: 400px;
                    overflow-y: auto;
                    padding: 8px 0;
                }

                .notification-item {
                    padding: 16px 24px;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
                    cursor: pointer;
                    transition: all 0.2s ease;
                    display: flex;
                    gap: 12px;
                    align-items: flex-start;
                }

                .notification-item:hover {
                    background: rgba(59, 130, 246, 0.02);
                }

                .notification-item.unread {
                    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.01) 100%);
                    border-left: 3px solid #3b82f6;
                }

                .notification-icon {
                    width: 32px;
                    height: 32px;
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 14px;
                    flex-shrink: 0;
                    margin-top: 2px;
                }

                .notification-icon.info {
                    background: rgba(59, 130, 246, 0.1);
                    color: #3b82f6;
                }

                .notification-icon.success {
                    background: rgba(34, 197, 94, 0.1);
                    color: #22c55e;
                }

                .notification-icon.warning {
                    background: rgba(245, 158, 11, 0.1);
                    color: #f59e0b;
                }

                .notification-icon.error {
                    background: rgba(239, 68, 68, 0.1);
                    color: #ef4444;
                }

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

                .notification-message {
                    font-size: 14px;
                    color: #1a1a1a;
                    line-height: 1.4;
                    margin-bottom: 4px;
                }

                .notification-meta {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .notification-time {
                    font-size: 12px;
                    color: #6b7280;
                }

                .notification-type {
                    font-size: 11px;
                    padding: 2px 6px;
                    border-radius: 4px;
                    background: rgba(0, 0, 0, 0.04);
                    color: #6b7280;
                    text-transform: uppercase;
                    font-weight: 500;
                }

                .notification-footer {
                    padding: 16px 24px;
                    background: rgba(249, 250, 251, 0.8);
                    border-top: 1px solid rgba(0, 0, 0, 0.05);
                    text-align: center;
                }

                .view-all-link {
                    color: #3b82f6;
                    text-decoration: none;
                    font-size: 14px;
                    font-weight: 600;
                    transition: all 0.2s ease;
                }

                .view-all-link:hover {
                    color: #2563eb;
                }

                /* Tab Instructions */
                .tab-instructions {
                    background: #e3f2fd;
                    border-left: 4px solid #1976d2;
                    padding: 20px;
                    margin-bottom: 25px;
                    border-radius: 8px;
                    line-height: 1.6;
                }

                .tab-instructions h3 {
                    color: #1565c0;
                    margin: 0 0 10px 0;
                    font-size: 18px;
                }

                .tab-instructions p {
                    color: #555;
                    margin: 8px 0;
                }

                .tab-instructions ul {
                    margin: 10px 0;
                    padding-left: 25px;
                }

                .tab-instructions li {
                    color: #555;
                    margin: 5px 0;
                }

                .tab-instructions-loading {
                    text-align: center;
                    color: #999;
                    font-style: italic;
                    padding: 15px;
                }

                /* Mobile Responsiveness */
                @media (max-width: 768px) {
                    .container {
                        padding: 12px;
                    }

                    .header-container {
                        padding: 20px;
                        border-radius: 20px;
                    }

                    .header-grid {
                        grid-template-columns: 1fr auto;
                        gap: 16px;
                    }

                    .brand-title {
                        font-size: 20px;
                    }

                    .brand-subtitle {
                        font-size: 13px;
                    }

                    .profile-section {
                        display: none;
                    }

                    .quick-actions {
                        gap: 6px;
                    }

                    .notification-dropdown {
                        right: 12px !important;
                        left: 12px !important;
                        width: auto !important;
                        top: 100px !important;
                    }

                    .notification-header,
                    .notification-item,
                    .notification-footer {
                        padding-left: 20px;
                        padding-right: 20px;
                    }
                }

                @media (max-width: 480px) {
                    .brand-icon {
                        width: 40px;
                        height: 40px;
                        font-size: 18px;
                    }

                    .brand-title {
                        font-size: 18px;
                    }

                    .quick-action-btn {
                        width: 40px;
                        height: 40px;
                    }

                    .quick-action-btn svg {
                        width: 18px;
                        height: 18px;
                    }
                }

                /* Your existing styles continue below... */
                .main-grid {
                    display: grid;
                    grid-template-columns: 1fr 2fr;
                    gap: 20px;
                    margin-bottom: 20px;
                }

                .card {
                    background: rgba(255, 255, 255, 0.95);
                    backdrop-filter: blur(10px);
                    border-radius: 15px;
                    padding: 25px;
                    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    margin-bottom: 20px;
                }

                .card h2 {
                    color: #2c3e50;
                    margin-bottom: 20px;
                    font-size: 1.4em;
                    font-weight: 600;
                }

                .industry-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                    gap: 10px;
                    max-height: 400px;
                    overflow-y: auto;
                }

                .industry-item {
                    display: flex;
                    align-items: center;
                    padding: 12px;
                    border-radius: 10px;
                    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
                    border: 2px solid transparent;
                    transition: all 0.3s ease;
                    cursor: pointer;
                }

                .industry-item:hover {
                    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                }

                .industry-item.selected {
                    background: linear-gradient(45deg, #2196f3, #1976d2);
                    color: white;
                    border-color: #0d47a1;
                }

                .industry-item input {
                    margin-right: 10px;
                    transform: scale(1.2);
                }

                .industry-code {
                    font-weight: bold;
                    margin-right: 10px;
                    font-family: 'Courier New', monospace;
                    background: rgba(0, 0, 0, 0.1);
                    padding: 2px 6px;
                    border-radius: 4px;
                }

                .search-controls {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 15px;
                    margin-bottom: 20px;
                    align-items: center;
                }

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

                .control-group label {
                    font-weight: 600;
                    color: #2c3e50;
                    font-size: 0.9em;
                }

                select, input {
                    padding: 10px;
                    border: 2px solid #e0e0e0;
                    border-radius: 8px;
                    font-size: 14px;
                    transition: border-color 0.3s ease;
                }

                select:focus, input:focus {
                    outline: none;
                    border-color: #2196f3;
                    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
                }

                .btn {
                    padding: 12px 24px;
                    border: none;
                    border-radius: 8px;
                    font-size: 14px;
                    font-weight: 600;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                }

                .btn-primary {
                    background: linear-gradient(45deg, #2196f3, #1976d2);
                    color: white;
                }

                .btn-primary:hover {
                    background: linear-gradient(45deg, #1976d2, #1565c0);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
                }

                .btn-success {
                    background: linear-gradient(45deg, #4caf50, #388e3c);
                    color: white;
                }

                .btn-success:hover {
                    background: linear-gradient(45deg, #388e3c, #2e7d32);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
                }

                .btn-warning {
                    background: linear-gradient(45deg, #ff9800, #f57f17);
                    color: white;
                }

                .btn-info {
                    background: linear-gradient(45deg, #00bcd4, #0097a7);
                    color: white;
                }

                .btn-secondary {
                    background: linear-gradient(45deg, #9e9e9e, #757575);
                    color: white;
                }

                .btn:disabled {
                    opacity: 0.6;
                    cursor: not-allowed;
                    transform: none;
                }

                .results-section {
                    margin-top: 20px;
                }

                .results-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
                    gap: 15px;
                    margin-top: 15px;
                }

                .prospect-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
                    gap: 20px;
                    margin-top: 15px;
                }

                .prospect-card {
                    background: linear-gradient(135deg, #ffffff, #f8f9fa);
                    border: 1px solid #e0e0e0;
                    border-radius: 12px;
                    padding: 20px;
                    transition: all 0.3s ease;
                    cursor: pointer;
                    position: relative;
                }

                .prospect-card:hover {
                    transform: translateY(-4px);
                    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
                    border-color: #2196f3;
                }

                .prospect-card.selected {
                    border-color: #4caf50;
                    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
                }

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

                .prospect-name {
                    font-size: 1.2em;
                    font-weight: bold;
                    color: white !important;
                }

                .prospect-industry {
                    font-size: 0.9em;
                    color: #7f8c8d;
                    background: #ecf0f1;
                    padding: 4px 8px;
                    border-radius: 12px;
                }

                .enrichment-status {
                    padding: 4px 8px;
                    border-radius: 12px;
                    font-size: 0.8em;
                    font-weight: bold;
                    text-transform: uppercase;
                }

                .enrichment-status.not_started {
                    background: #e0e0e0;
                    color: #757575;
                }

                .enrichment-status.in_progress {
                    background: #fff3e0;
                    color: #ff9800;
                }

                .enrichment-status.completed {
                    background: #e8f5e8;
                    color: #4caf50;
                }

                .enrichment-status.failed {
                    background: #ffebee;
                    color: #f44336;
                }

                .prospect-details {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                    gap: 10px;
                    font-size: 0.9em;
                }

                .detail-item {
                    display: flex;
                    flex-direction: column;
                }

                .detail-label {
                    font-weight: 600;
                    color: #34495e;
                    margin-bottom: 2px;
                }

                .detail-value {
                    color: #7f8c8d;
                }

                .enrichment-summary {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 10px;
                    margin: 15px 0;
                    padding: 15px;
                    background: #f8f9fa;
                    border-radius: 8px;
                }

                .enrichment-metric {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    text-align: center;
                }

                .metric-number {
                    font-size: 1.2em;
                    font-weight: bold;
                    color: #2196f3;
                }

                .metric-label {
                    font-size: 0.8em;
                    color: #7f8c8d;
                    margin-top: 5px;
                }

                .prospect-actions-row {
                    display: flex;
                    gap: 8px;
                    margin-top: 10px;
                }

                .prospect-actions-row .btn {
                    flex: 1;
                    padding: 8px 12px;
                    font-size: 12px;
                    min-height: 36px;
                }

                .prospect-actions-row.three-buttons .btn {
                    flex: 1;
                }

                .prospect-actions-row.two-buttons .btn {
                    flex: 1;
                }

                .loading {
                    text-align: center;
                    padding: 40px;
                    color: #7f8c8d;
                    font-size: 1.1em;
                }

                .spinner {
                    width: 40px;
                    height: 40px;
                    border: 4px solid #f3f3f3;
                    border-top: 4px solid #2196f3;
                    border-radius: 50%;
                    animation: spin 1s linear infinite;
                    margin: 0 auto 20px;
                }

                @keyframes spin {
                    0% { transform: rotate(0deg); }
                    100% { transform: rotate(360deg); }
                }

                .stats-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                    gap: 15px;
                    margin-bottom: 20px;
                }

                .stat-card {
                    background: linear-gradient(135deg, #ffffff, #f8f9fa);
                    border-radius: 12px;
                    padding: 20px;
                    text-align: center;
                    border: 1px solid #e0e0e0;
                }

                .stat-number {
                    font-size: 2.5em;
                    font-weight: bold;
                    color: #2196f3;
                    margin-bottom: 5px;
                }

                .stat-label {
                    color: #7f8c8d;
                    font-size: 0.9em;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                }

                .tabs {
                    display: flex;
                    margin-bottom: 20px;
                    background: rgba(255, 255, 255, 0.95);
                    border-radius: 12px;
                    padding: 5px;
                }

                .tab {
                    flex: 1;
                    padding: 12px 20px;
                    text-align: center;
                    border-radius: 8px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    font-weight: 600;
                }

                .tab.active {
                    background: linear-gradient(45deg, #2196f3, #1976d2);
                    color: white;
                }

                .tab-content {
                    display: none;
                }

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

                .message {
                    padding: 15px;
                    border-radius: 8px;
                    margin: 10px 0;
                    font-weight: 500;
                }

                .message.success {
                    background: #d4edda;
                    color: #155724;
                    border: 1px solid #c3e6cb;
                }

                .message.error {
                    background: #f8d7da;
                    color: #721c24;
                    border: 1px solid #f5c6cb;
                }

                .message.info {
                    background: #d1ecf1;
                    color: #0c5460;
                    border: 1px solid #bee5eb;
                }

                .checkbox-group {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    margin: 10px 0;
                }

                .checkbox-group input[type="checkbox"]:disabled + label {
                    color: #ccc;
                    cursor: not-allowed;
                }

                .checkbox-group input[type="checkbox"]:disabled {
                    cursor: not-allowed;
                    opacity: 0.5;
                }

                /* Modal Styles */
                .modal {
                    display: none;
                    position: fixed;
                    z-index: 1000;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0, 0, 0, 0.5);
                }

                .modal-content {
                    background-color: white;
                    margin: 5% auto;
                    padding: 20px;
                    border-radius: 15px;
                    width: 90%;
                    max-width: 800px;
                    max-height: 80vh;
                    overflow-y: auto;
                }

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

                .close {
                    font-size: 28px;
                    font-weight: bold;
                    cursor: pointer;
                    color: #aaa;
                }

                .close:hover {
                    color: #000;
                }

                /* All your existing custom styles from the original file continue here... */
                .positioning-message {
                    background: white;
                    border: 1px solid #e0e0e0;
                    border-radius: 12px;
                    padding: 20px;
                    margin: 15px 0;
                    transition: all 0.3s ease;
                }

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

                .message-type-badge {
                    display: inline-block;
                    padding: 4px 12px;
                    border-radius: 15px;
                    font-size: 0.8em;
                    font-weight: bold;
                    text-transform: uppercase;
                    margin-bottom: 10px;
                }

                .message-type-short {
                    background: #e3f2fd;
                    color: #1976d2;
                }

                .message-type-medium {
                    background: #fff3e0;
                    color: #f57f17;
                }

                .message-type-long {
                    background: #e8f5e8;
                    color: #2e7d32;
                }

                .message-subject {
                    font-size: 1.1em;
                    font-weight: bold;
                    color: #2c3e50;
                    margin: 10px 0;
                }

                .message-body {
                    background: #f8f9fa;
                    padding: 15px;
                    border-radius: 8px;
                    line-height: 1.6;
                    margin: 15px 0;
                    color: #555;
                    border-left: 4px solid #2196f3;
                    white-space: pre-line;
                }

                .message-meta {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                    gap: 10px;
                    margin: 15px 0;
                    padding: 15px;
                    background: #f1f3f4;
                    border-radius: 8px;
                    font-size: 0.9em;
                }

                .meta-item {
                    display: flex;
                    flex-direction: column;
                }

                .meta-label {
                    font-weight: bold;
                    color: #2c3e50;
                    margin-bottom: 3px;
                }

                .meta-value {
                    color: #7f8c8d;
                }

                .copy-button {
                    background: linear-gradient(45deg, #4caf50, #388e3c);
                    color: white;
                    border: none;
                    padding: 10px 20px;
                    border-radius: 8px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    margin: 10px 5px;
                    font-weight: 600;
                }

                .copy-button:hover {
                    background: linear-gradient(45deg, #388e3c, #2e7d32);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
                }

                .copy-button.copied {
                    background: linear-gradient(45deg, #ff9800, #f57f17);
                }

                .copy-button.template {
                    background: linear-gradient(45deg, #2196f3, #1976d2);
                }

                .copy-button.template:hover {
                    background: linear-gradient(45deg, #1976d2, #1565c0);
                }

                .positioning-loading {
                    text-align: center;
                    padding: 40px;
                    color: #7f8c8d;
                }

                .positioning-error {
                    background: #ffebee;
                    border: 1px solid #f5c6cb;
                    border-radius: 8px;
                    padding: 20px;
                    text-align: center;
                    color: #721c24;
                    margin: 20px 0;
                }

                .positioning-stats {
                    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
                    padding: 15px;
                    border-radius: 8px;
                    text-align: center;
                    margin-bottom: 20px;
                }

                .positioning-tips {
                    background: #f8f9fa;
                    padding: 20px;
                    border-radius: 8px;
                    margin-top: 20px;
                }

                .positioning-tips ul {
                    text-align: left;
                    color: #555;
                    margin: 10px 0;
                    padding-left: 20px;
                }

                .positioning-tips li {
                    margin-bottom: 8px;
                }

                .position-solution-btn {
                    background: linear-gradient(45deg, #e91e63, #ad1457) !important;
                    color: white !important;
                    width: 100%;
                    font-size: 13px !important;
                    font-weight: 600 !important;
                    border: none !important;
                    padding: 8px 16px !important;
                    border-radius: 8px !important;
                    cursor: pointer !important;
                    transition: all 0.3s ease !important;
                }

                .position-solution-btn:hover {
                    background: linear-gradient(45deg, #ad1457, #880e4f) !important;
                    transform: translateY(-2px) !important;
                    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3) !important;
                }

                .setup-required-message {
                    background: #fff3cd;
                    border: 1px solid #ffeaa7;
                    color: #856404;
                    padding: 15px;
                    border-radius: 8px;
                    margin: 15px 0;
                    text-align: center;
                }

                /* Continue with all your existing styles... */
                .contact-list {
                    display: grid;
                    gap: 15px;
                }

                .contact-item {
                    background: #f8f9fa;
                    padding: 15px;
                    border-radius: 8px;
                    border-left: 4px solid #2196f3;
                }

                .contact-name {
                    font-weight: bold;
                    color: #2c3e50;
                    margin-bottom: 5px;
                }

                .contact-title {
                    color: #7f8c8d;
                    font-style: italic;
                    margin-bottom: 10px;
                }

                .contact-details {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                    gap: 10px;
                    font-size: 0.9em;
                }

                .confidence-score {
                    display: inline-block;
                    padding: 2px 6px;
                    border-radius: 10px;
                    font-size: 0.8em;
                    font-weight: bold;
                }

                .confidence-high {
                    background: #e8f5e8;
                    color: #4caf50;
                }

                .confidence-medium {
                    background: #fff3e0;
                    color: #ff9800;
                }

                .confidence-low {
                    background: #ffebee;
                    color: #f44336;
                }

                .news-list {
                    display: grid;
                    gap: 15px;
                }

                .news-item {
                    background: #f8f9fa;
                    padding: 15px;
                    border-radius: 8px;
                    border-left: 4px solid #4caf50;
                }

                .news-title {
                    font-weight: bold;
                    color: #2c3e50;
                    margin-bottom: 10px;
                }

                .news-meta {
                    display: flex;
                    gap: 15px;
                    margin-bottom: 10px;
                    font-size: 0.9em;
                    color: #7f8c8d;
                }

                .news-content {
                    color: #555;
                    line-height: 1.5;
                }

                .sentiment {
                    padding: 2px 6px;
                    border-radius: 10px;
                    font-size: 0.8em;
                    font-weight: bold;
                }

                .sentiment-positive {
                    background: #e8f5e8;
                    color: #4caf50;
                }

                .sentiment-neutral {
                    background: #f5f5f5;
                    color: #757575;
                }

                .sentiment-negative {
                    background: #ffebee;
                    color: #f44336;
                }

                /* Continue with all additional styles from your original file */
                #competitorProspectsTable tbody tr {
                    transition: opacity 0.2s ease;
                }

                #competitorProspectsTable tbody tr[style*="display: none"] {
                    opacity: 0;
                }

                .competitor-card {
                    transition: transform 0.2s ease;
                }

                .competitor-card:hover {
                    transform: translateY(-2px);
                }

                .progress {
                    height: 8px;
                }

                .modal-xl .card {
                    height: 100%;
                }

                .badge {
                    font-size: 0.75em;
                }

                .import-steps {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    margin-bottom: 30px;
                    padding: 0 20px;
                    gap: 0;
                    position: relative;
                }

                .step {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    opacity: 0.75;
                    transition: opacity 0.3s ease;
                    position: relative;
                    flex: 0 0 auto;
                    padding: 0 40px;
                    text-align: center;
                }

                .step:not(:last-child)::after {
                    content: '';
                    position: absolute;
                    top: 15px;
                    left: calc(50% + 30px);
                    width: 80px;
                    height: 2px;
                    background: #dee2e6;
                    z-index: 0;
                }

                .step.active::after {
                    background: #3498db;
                }

                .step.completed::after {
                    background: #27ae60;
                }

                .step.active {
                    opacity: 1;
                }

                .step.completed {
                    opacity: 1;
                    color: #495057;
                }

                .step-number {
                    width: 32px;
                    height: 32px;
                    border-radius: 50%;
                    background: #dee2e6;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-weight: bold;
                    color: #6c757d;
                    font-size: 14px;
                    position: relative;
                    z-index: 1;
                    border: 2px solid #dee2e6;
                }

                .step.active .step-number {
                    background: #3498db;
                    color: white;
                    border-color: #3498db;
                }

                .step.completed .step-number {
                    background: #27ae60;
                    color: white;
                    border-color: #27ae60;
                }

                .step > div:last-child {
                    font-size: 13px;
                    color: #495057;
                    font-weight: 500;
                    white-space: nowrap;
                    text-align: center;
                    width: 100%;
                    display: block;
                    margin: 0 auto;
                }

                .step.active > div:last-child {
                    color: #3498db;
                    font-weight: 600;
                }

                .step.completed > div:last-child {
                    color: #27ae60;
                }

                .import-section {
                    margin-bottom: 25px;
                }

                .import-section.hidden {
                    display: none;
                }

                /* Continue with all your remaining styles... */
                .column-mapping {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    gap: 15px;
                    margin: 20px 0;
                    padding: 20px;
                    background: #f8f9fa;
                    border-radius: 10px;
                }

                .column-header {
                    font-weight: bold;
                    padding: 10px;
                    background: #e9ecef;
                    border-radius: 5px;
                    text-align: center;
                }

                .column-item {
                    padding: 10px;
                    background: white;
                    border-radius: 5px;
                    border: 1px solid #dee2e6;
                }

                .preview-table {
                    width: 100%;
                    border-collapse: collapse;
                    margin: 20px 0;
                    background: white;
                    border-radius: 10px;
                    overflow: hidden;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                }

                .preview-table th,
                .preview-table td {
                    padding: 12px;
                    text-align: left;
                    border-bottom: 1px solid #dee2e6;
                }

                .preview-table th {
                    background: #f8f9fa;
                    font-weight: 600;
                    color: #495057;
                }

                .preview-table tbody tr:hover {
                    background: #f8f9fa;
                }

                .mapping-select {
                    width: 100%;
                    padding: 8px;
                    border: 1px solid #ddd;
                    border-radius: 5px;
                    background: white;
                }

                .import-summary {
                    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
                    padding: 20px;
                    border-radius: 10px;
                    margin: 20px 0;
                }

                .import-progress {
                    width: 100%;
                    height: 20px;
                    background: #e0e0e0;
                    border-radius: 10px;
                    overflow: hidden;
                    margin: 15px 0;
                }

                .import-progress-bar {
                    height: 100%;
                    background: linear-gradient(45deg, #4caf50, #45a049);
                    width: 0%;
                    transition: width 0.3s ease;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-weight: bold;
                }

                .url-input {
                    width: 100%;
                    padding: 15px;
                    font-size: 16px;
                    border: 2px solid #e0e0e0;
                    border-radius: 10px;
                    margin-bottom: 15px;
                }

                .url-input:focus {
                    border-color: #3498db;
                    outline: none;
                }

                .btn-group {
                    display: flex;
                    gap: 10px;
                    margin: 15px 0;
                }

                .data-stats {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                    gap: 15px;
                    margin: 20px 0;
                }

                .data-stat {
                    background: white;
                    padding: 15px;
                    border-radius: 8px;
                    text-align: center;
                    border: 1px solid #e0e0e0;
                }

                .data-stat-number {
                    font-size: 1.8em;
                    font-weight: bold;
                    color: #2196f3;
                }

                .data-stat-label {
                    color: #666;
                    margin-top: 5px;
                }

                .social-media-list {
                    display: grid;
                    gap: 15px;
                }

                .social-media-item {
                    background: #f8f9fa;
                    padding: 15px;
                    border-radius: 8px;
                    border-left: 4px solid #0077b5;
                    display: flex;
                    align-items: center;
                    gap: 15px;
                }

                .social-media-item.linkedin {
                    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
                    border-left: 4px solid #0077b5;
                    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.1);
                }

                .social-media-item.twitter {
                    border-left-color: #1da1f2;
                }

                .social-media-item.facebook {
                    border-left-color: #4267b2;
                }

                .social-media-icon {
                    width: 40px;
                    height: 40px;
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-weight: bold;
                    font-size: 16px;
                }

                .social-media-icon.linkedin {
                    background: #0077b5;
                }

                .social-media-icon.twitter {
                    background: #1da1f2;
                }

                .social-media-icon.facebook {
                    background: #4267b2;
                }

                .social-media-details {
                    flex: 1;
                }

                .social-media-platform {
                    font-weight: bold;
                    color: #2c3e50;
                    margin-bottom: 5px;
                }

                .social-media-url {
                    color: #0077b5;
                    text-decoration: none;
                    word-break: break-all;
                }

                .social-media-url:hover {
                    text-decoration: underline;
                }

                .linkedin-highlight {
                    background: linear-gradient(45deg, #0077b5, #005582) !important;
                    color: white !important;
                    font-weight: bold !important;
                }

                #add-prospect-form {
                    transition: all 0.3s ease;
                }

                #add-prospect-form input, #add-prospect-form select, #add-prospect-form textarea {
                    width: 100%;
                    padding: 8px 12px;
                    border: 2px solid #e0e0e0;
                    border-radius: 6px;
                    font-size: 14px;
                    transition: border-color 0.3s ease;
                }

                #add-prospect-form input:focus, #add-prospect-form select:focus, #add-prospect-form textarea:focus {
                    outline: none;
                    border-color: #2196f3;
                    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
                }

                #add-prospect-form label {
                    font-weight: 600;
                    color: #2c3e50;
                    font-size: 13px;
                    margin-bottom: 5px;
                    display: block;
                }

                .control-group small {
                    display: block;
                    margin-top: 2px;
                }

                @media (max-width: 768px) {
                    .main-grid {
                        grid-template-columns: 1fr;
                    }

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

                    .results-grid, .prospect-grid {
                        grid-template-columns: 1fr;
                    }

                    .enrichment-summary {
                        flex-direction: column;
                    }

                    .message-meta {
                        grid-template-columns: 1fr;
                    }

                    .copy-button {
                        display: block;
                        width: 100%;
                        margin: 5px 0;
                    }
                }

/* End of Rich's reformat */



/* =================================================
   RESPONSIVE DESIGN
   ================================================= */

/* Utility: Hide elements on mobile */
.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: var(--space-lg) var(--space-md);
        margin-bottom: var(--space-lg);
        top: var(--space-sm);
        text-align: center;
    }

    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }

    .header.scrolled {
        padding: var(--space-md) var(--space-lg);
    }

    .header h1 {
        font-size: 1.8em;
        flex-direction: column;
        gap: 10px;
    }

    .header p {
        padding-left: 0;
        font-size: 1em;
    }

    .header h1 img {
        height: 40px;
    }

    /* Buttons: Minimum 44px touch target */
    .btn, button, a.btn, .btn-primary, .btn-success, .btn-warning, .btn-info, .btn-secondary {
        min-height: 44px;
        padding: var(--space-md) var(--space-lg);
        width: 100%;
        margin-bottom: var(--space-sm);
    }

    .btn-group {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }

    .btn-group .btn {
        margin-bottom: 0;
    }

    /* Tables: Horizontal scroll wrapper */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin-bottom: var(--space-lg);
    }

    .table-responsive table {
        min-width: 600px;
    }

    /* Forms: Stack vertically */
    .form-row, .control-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .form-row > * {
        width: 100%;
    }

    select, input, textarea, .form-control {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Modals: Full-width on mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2.5% auto;
        padding: var(--space-lg);
        max-height: 95vh;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Payment Modal: Mobile optimizations */
    .payment-form {
        max-width: 95%;
        width: 95%;
        margin: var(--space-lg) auto;
        padding: var(--space-lg);
        top: 50%;
        transform: translateY(-50%);
    }

    .card-element {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .payment-button {
        min-height: 48px;
        font-size: 16px;
    }

    .prospect-card {
        max-width: 100%;
    }

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

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quality-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .prospect-actions-row.three-buttons,
    .prospect-actions-row.two-buttons {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .utility-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

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

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

    .enrichment-summary {
        flex-direction: column;
    }

    .message-meta {
        grid-template-columns: 1fr;
    }

    .copy-button {
        display: block;
        width: 100%;
        margin: 5px 0;
        min-height: 44px;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0;
    }

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

    /* Code input groups stack vertically */
    .code-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .code-input-group input {
        width: 100%;
    }

    .code-input-group button {
        width: 100%;
        min-height: 44px;
    }

    /* Button exceptions: Small buttons that shouldn't be full-width */
    button[onclick*="close"],
    .close,
    .quick-action-btn,
    button[style*="float"],
    button[style*="background: none"] {
        width: auto;
        min-width: 44px;
        min-height: 44px;
        padding: var(--space-sm);
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: var(--space-md) var(--space-sm);
    }

    .header.scrolled {
        padding: var(--space-sm) var(--space-md);
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header p {
        font-size: 0.9em;
    }

    .header h1 img {
        height: 35px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prospect-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .prospect-name {
        font-size: 1.2em;
        padding-right: 0;
        color: white !important;
    }

    .prospect-details {
        padding: 15px;
    }

    .enrichment-summary {
        margin: 0 15px 15px 15px;
        padding: 12px;
    }

    .primary-actions {
        padding: 0 15px 12px 15px;
    }

    .cta-section {
        padding: 12px 15px;
    }

    .position-solution-btn {
        padding: 12px 16px !important;
        font-size: 0.8em !important;
    }

    .modal-content {
        width: 98%;
        max-width: 98%;
        padding: var(--space-md);
    }

    .payment-form {
        max-width: 98%;
        width: 98%;
        padding: var(--space-md);
    }
}
