@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Survade Dark Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --primary-purple: #667eea;
    --primary-violet: #764ba2;
    --accent-blue: #4facfe;
    --dark-bg: #0f0f23;
    --dark-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #8888a8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    min-height: 100vh;
    font-weight: 300;
    letter-spacing: -0.01em;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.container.results-mode {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.container.results-mode header,
.container.results-mode .profile-section {
    display: none;
}

/* Profile Section */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.profile-form .form-group {
    margin-bottom: 32px;
}

.profile-form label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

/* Multi-select styling */
.multi-select-container {
    position: relative;
}

.multi-select {
    position: relative;
    cursor: pointer;
}

.multi-select-display {
    min-height: 48px;
    padding: 12px 16px;
    background: rgba(15, 15, 35, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.multi-select-display:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.multi-select-display::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.multi-select-display.show::after {
    transform: translateY(-50%) rotate(180deg);
}

.placeholder {
    color: var(--text-muted);
    font-size: 1rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 6px;
    animation: tagAppear 0.2s ease-out;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.remove-tag {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s ease;
}

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

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.multi-select-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.checkbox-option:last-child {
    border-bottom: none;
}

.checkbox-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Tooltip styling for descriptions */
.checkbox-option[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 2000;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.checkbox-option span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Form inputs */
.profile-form input[type="url"],
.profile-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 15, 35, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
}

.profile-form input[type="url"]:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(15, 15, 35, 0.7);
}

.profile-form input[type="url"]::placeholder,
.profile-form textarea::placeholder {
    color: var(--text-muted);
}

/* Results table enhancements */
.industry-tag {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.budget {
    color: #38a169;
    font-weight: 600;
}

.marketing-needs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.need-tag {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Update table cell sizes */
.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    width: 25%;
}

.results-table th:nth-child(2),
.results-table td:nth-child(2) {
    width: 15%;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3) {
    width: 15%;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    width: 20%;
}

.results-table th:nth-child(5),
.results-table td:nth-child(5) {
    width: 25%;
}

.tab-btn:hover {
    color: #2d3748;
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.tab-btn.active:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Tab Content */
.tab-content {
    display: none;
}

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

header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.icp-form, .enrich-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* File Upload Styling */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f8ff;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-content svg {
    color: #a0aec0;
    margin-bottom: 16px;
}

.upload-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.upload-content p {
    color: #4a5568;
    font-weight: 300;
    margin-bottom: 12px;
}

.file-requirements {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.file-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.file-info h4 {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1rem;
}

.file-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.file-details span {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 400;
}

.file-details span::before {
    content: "• ";
    color: #a0aec0;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #2d3748;
    letter-spacing: -0.01em;
}

.form-group textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #2d3748;
    line-height: 1.6;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #a0aec0, #9ca3af);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.results-section {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.container.results-mode .results-section {
    min-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 60px 80px;
}

.results-section h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.results-header span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.download-btn,
.new-search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.download-btn:hover,
.new-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-container {
    overflow-x: auto;
    position: relative;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.results-table th,
.results-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.results-table th:first-child {
    border-top-left-radius: 12px;
}

.results-table th:last-child {
    border-top-right-radius: 12px;
}

.results-table td {
    vertical-align: top;
    color: var(--text-secondary);
    line-height: 1.5;
}

.results-table td strong {
    color: var(--text-primary);
    font-weight: 600;
}

.results-table tbody tr {
    background: rgba(15, 15, 35, 0.3);
    transition: all 0.2s ease;
}

.results-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(2px);
}

.error-message {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #742a2a;
    padding: 20px 24px;
    border-radius: 12px;
    margin-top: 24px;
    text-align: center;
    border: 1px solid #fc8181;
    font-weight: 500;
}

.empty-cell {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}

/* Blur effect for preview */
.blurred-row {
    filter: blur(3px);
    opacity: 0.6;
    pointer-events: none;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(15,15,35,0) 0%, rgba(15,15,35,0.95) 40%, rgba(15,15,35,0.98) 100%);
    padding: 40px 20px 20px;
    text-align: center;
    z-index: 10;
}

.blur-message {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.5),
        0 8px 16px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    max-width: 440px;
    margin: 0 auto;
}

.blur-message h3 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.blur-message p {
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

.download-btn-overlay {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.download-btn-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 40px;
}

/* Animated Data Flow Circles */
.data-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.6;
    animation: dataFlow 2s ease-in-out infinite;
}

.data-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.data-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 20%;
    animation-delay: 0.3s;
}

.data-circle:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 20%;
    animation-delay: 0.6s;
}

.data-circle:nth-child(4) {
    width: 55px;
    height: 55px;
    bottom: 20%;
    left: 25%;
    animation-delay: 0.9s;
}

.data-circle:nth-child(5) {
    width: 45px;
    height: 45px;
    bottom: 20%;
    right: 25%;
    animation-delay: 1.2s;
}

@keyframes dataFlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 30px 10px rgba(102, 126, 234, 0);
    }
}

.loading-text {
    text-align: center;
    color: var(--text-primary);
}

.loading-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

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

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

    header h1 {
        font-size: 2rem;
    }

    .icp-form {
        padding: 20px;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .results-table {
        font-size: 14px;
    }

    .loading-animation {
        width: 200px;
        height: 200px;
    }

    .loading-text h2 {
        font-size: 1.5rem;
    }
}

/* LinkedIn Link Styling */
.linkedin-link {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.linkedin-link:hover {
    color: #004182;
    text-decoration: underline;
}

.linkedin-link::before {
    content: '🔗';
    font-size: 0.85em;
}

/* Loading Container */
.loading-container {
    text-align: center;
    padding: 20px;
}

/* Table responsiveness for new columns */
.results-table th:nth-child(1),
.results-table td:nth-child(1) {
    min-width: 150px;
}

.results-table th:nth-child(4),
.results-table td:nth-child(4) {
    min-width: 180px;
}

/* ============================================================================
   AUTHENTICATION STYLES
   ============================================================================ */

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.login-modal-content {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 48px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Google Sign-In Button */
.google-signin-btn {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #444;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.google-signin-btn:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-signin-btn svg {
    flex-shrink: 0;
}

/* Cancel Button */
.cancel-btn {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Header User Info */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.header-text {
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-email {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .login-modal-content {
        padding: 32px 24px;
    }
}

/* ============================================================================
   COMPANY CARDS GRID - LEADS VIEW REVAMP
   ============================================================================ */

/* Company Cards Grid */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    margin-top: 32px;
}

/* Individual Company Card */
.company-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Card Header with Logo */
.company-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.company-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.company-name-section {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-website {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.company-website:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* Card Body */
.company-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0; /* Allow flex items to shrink */
}

.company-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.company-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Push to bottom of card body */
    padding-top: 8px; /* Add some spacing from content above */
}

.industry-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: var(--accent-blue);
    white-space: nowrap;
}

/* Card Footer */
.company-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.view-leads-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.view-leads-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
}

/* ============================================================================
   POC MODAL
   ============================================================================ */

.poc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.poc-modal-content {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 0;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.poc-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-company-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.modal-company-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-company-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.modal-company-info h2 {
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-company-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.poc-modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

/* POC Table */
.poc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.poc-table th {
    background: rgba(102, 126, 234, 0.1);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.poc-table th:first-child {
    border-top-left-radius: 8px;
}

.poc-table th:last-child {
    border-top-right-radius: 8px;
}

.poc-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.poc-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.poc-table a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.poc-table a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* ============================================================================
   PAGINATION CONTROLS
   ============================================================================ */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-purple);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.page-number:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-purple);
    color: var(--text-primary);
}

.page-number.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.pagination-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-download {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-download a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pagination-download a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* ============================================================================
   RESPONSIVE - CARDS & MODAL
   ============================================================================ */

@media (max-width: 768px) {
    .company-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .company-card {
        padding: 20px;
    }

    .company-card-header {
        gap: 12px;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .poc-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .poc-modal-header,
    .poc-modal-body {
        padding: 16px 20px;
    }

    .modal-company-info h2 {
        font-size: 1.25rem;
    }

    .poc-table {
        font-size: 0.85rem;
    }

    .poc-table th,
    .poc-table td {
        padding: 10px 12px;
    }

    .pagination-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-pages {
        max-width: 250px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .page-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pagination-info-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .pagination-info,
    .pagination-download {
        font-size: 0.85rem;
    }
}