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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    align-items: center;
}

.nav-logo {
    height: 165px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.2;
}

.slogan {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-links a.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav-links a.nav-cta:hover {
    background: var(--gradient-hero);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 2rem 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

.btn-back-dark {
    background: #374151;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-back-dark:hover {
    background: #1f2937;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: var(--white);
    border-radius: 12px;
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s ease;
}

.form-group input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
}

.sector-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    cursor: pointer;
}

.sector-option input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.sector-option span {
    line-height: 1.4;
}

.personnel-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.personnel-card .person-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.personnel-card .person-field input {
    width: 100%;
}

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

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.results-container {
    margin: 2rem 0;
}

.results-header {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.startup-summary {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.unlock-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
    color: #0369a1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.match-header {
    margin-bottom: 1.5rem;
}

.fund-website {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.fund-website a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

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

.fund-website a::before {
    content: "🌐";
    font-size: 1rem;
}

.match-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.match-title h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.match-score {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.score-badge {
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tier-excellent {
    background-color: #FFF8E7;
    color: #D4AF37;
    border: 1px solid #D4AF37;
}

.tier-strong {
    background-color: #E8F5E9;
    color: #28A745;
    border: 1px solid #28A745;
}

.tier-good {
    background-color: #E3F2FD;
    color: #2196F3;
    border: 1px solid #2196F3;
}

.tier-potential {
    background-color: #FFF3E0;
    color: #FF9800;
    border: 1px solid #FF9800;
}

.tier-poor {
    background-color: #F5F5F5;
    color: #9E9E9E;
    border: 1px solid #9E9E9E;
}

.tier-key-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.tier-key-toggle {
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    padding: 0.5rem;
    list-style: none;
}

.tier-key-toggle::-webkit-details-marker {
    display: none;
}

.tier-key-toggle::before {
    content: "▶ ";
    font-size: 0.75rem;
}

.tier-key-section[open] .tier-key-toggle::before {
    content: "▼ ";
}

.tier-key-content {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.tier-key-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: #f9fafb;
}

.tier-key-item.tier-excellent {
    background: #FFF8E7;
    border-left: 3px solid #D4AF37;
}

.tier-key-item.tier-strong {
    background: #E8F5E9;
    border-left: 3px solid #28A745;
}

.tier-key-item.tier-good {
    background: #E3F2FD;
    border-left: 3px solid #2196F3;
}

.tier-key-item.tier-potential {
    background: #FFF3E0;
    border-left: 3px solid #FF9800;
}

.tier-key-item.tier-poor {
    background: #F5F5F5;
    border-left: 3px solid #9E9E9E;
}

.tier-key-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.tier-key-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tier-key-text strong {
    font-size: 0.9rem;
}

.tier-key-text span {
    font-size: 0.825rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .tier-key-content {
        gap: 0.5rem;
    }
    
    .tier-key-item {
        padding: 0.5rem;
    }
    
    .tier-key-icon {
        font-size: 1rem;
        width: 1.5rem;
    }
    
    .tier-key-text strong {
        font-size: 0.8rem;
    }
    
    .tier-key-text span {
        font-size: 0.75rem;
    }
}

.match-narrative {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.fund-capital-status {
    margin: 0.75rem 0;
}

.capital-indicator {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.capital-active {
    background: #dcfce7;
    color: #166534;
}

.capital-moderate {
    background: #fef3c7;
    color: #92400e;
}

.capital-limited {
    background: #fee2e2;
    color: #991b1b;
}

.contact-suggestion {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.strategic-tier {
    margin: 0.5rem 0;
}

.connection-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.background-badge {
    background: #8b5cf6;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.competitor-warning {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.final-score-badge {
    background: #6b7280;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.competitor-alert {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    color: #7f1d1d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.competitor-alert strong {
    color: #991b1b;
    font-weight: 700;
}

.competitor-alert .penalty-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #991b1b;
    font-style: italic;
}

.extraction-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.extraction-success {
    padding: 1rem;
    background: #dcfce7;
    border-left: 4px solid var(--success);
    border-radius: 8px;
    margin-top: 1rem;
    color: #166534;
    font-weight: 500;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0f2fe;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.shared-backgrounds-highlight {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5ff 100%);
    border-left: 4px solid #8b5cf6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.shared-backgrounds-highlight strong {
    color: #5b21b6;
    margin-right: 0.5rem;
}

.connection-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.25rem;
}

.school-tag {
    background: #ddd6fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

.company-tag {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.linkedin-connections {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.linkedin-connections h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.connection-list {
    list-style: none;
    margin: 0;
}

.connection-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0f2fe;
}

.connection-list li:last-child {
    border-bottom: none;
}

.badge-connection {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0.25rem;
}

.badge-connection.first-degree {
    background: #dcfce7;
    color: #166534;
}

.badge-connection.second-degree {
    background: #dbeafe;
    color: #1e40af;
}

.seniority {
    color: var(--text-light);
    font-size: 0.875rem;
}

.filing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.filing-badge.recent {
    background: #dcfce7;
    color: #166534;
}

.filing-badge.moderate {
    background: #fef3c7;
    color: #92400e;
}

.filing-badge.old {
    background: #fee2e2;
    color: #991b1b;
}

.match-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.match-details h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.narrative-summary {
    line-height: 1.8;
    color: var(--text-dark);
}

.narrative-summary p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.narrative-summary strong {
    color: var(--primary-color);
    font-weight: 600;
}

.match-breakdown,
.team-details {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bg-light);
}

.match-breakdown summary,
.team-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem;
    user-select: none;
    list-style: none;
}

.match-breakdown summary:hover,
.team-details summary:hover {
    color: var(--secondary-color);
}

.match-breakdown summary::-webkit-details-marker,
.team-details summary::-webkit-details-marker {
    display: none;
}

.match-breakdown summary::before,
.team-details summary::before {
    content: "▶ ";
    display: inline-block;
    transition: transform 0.2s;
}

.match-breakdown[open] summary::before,
.team-details[open] summary::before {
    transform: rotate(90deg);
}

.match-breakdown ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.sec-filing {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.match-reasons {
    list-style: none;
    margin-bottom: 1rem;
}

.match-reasons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.match-reasons li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.team-members {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.person-card {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.person-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.person-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-size: 0.875rem;
}

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

.btn-flag-person {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    color: #888;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}

.btn-flag-person:hover {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff5f5;
}

.btn-flag-person.flagged {
    color: #28a745;
    border-color: #28a745;
    background: #f0fff4;
    cursor: default;
}

.more-people {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-style: italic;
}

.sec-filing {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.sec-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.feedback-section {
    width: 100%;
    max-width: 100%;
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feedback-section h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feedback-section > p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.feedback-form {
    width: 100%;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feedback-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.feedback-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.feedback-success {
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    margin-top: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.rating-stars .star {
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.hover {
    color: #ffc107;
}

.rating-stars .star.selected {
    color: #ffc107;
}

.admin-container {
    margin: 2rem 0;
}

.submissions-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-light);
}

th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.badge-small {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.small-link {
    color: var(--text-light);
    font-size: 0.875rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    opacity: 0.9;
}

.btn-rerun {
    background: #059669;
}

.btn-rerun:hover {
    background: #047857;
}

.btn-extended {
    background: #7c3aed;
    margin-left: 5px;
}

.btn-extended:hover {
    background: #6d28d9;
}

footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.footer-links .separator {
    color: var(--border-color);
}

.legal-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.effective-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-intro {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.legal-intro p {
    margin-bottom: 0.75rem;
}

.legal-intro p:last-child {
    margin-bottom: 0;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .brand {
        text-align: left;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .match-card {
        padding: 1.5rem;
    }
    
    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .match-score {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
    }
    
    .investor-card {
        padding: 1.5rem;
    }
    
    .investor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .investor-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-export {
        width: 100%;
        text-align: center;
    }
    
    .feedback-card {
        padding: 1.5rem;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .feedback-ratings {
        width: 100%;
        text-align: left;
    }
    
    .badge {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section h2 {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.9rem;
    }
    
    .match-card {
        padding: 1rem;
    }
    
    .match-title {
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .admin-table {
        font-size: 0.75rem;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .legal-container {
        padding: 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links .separator {
        display: none;
    }
}

/* Checkbox group styling for founder demographics */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    background-color: #f8f9fa;
    border-color: #3366cc;
}

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

.checkbox-option input[type="checkbox"]:checked + span {
    color: #3366cc;
    font-weight: 500;
}

.checkbox-option span {
    font-size: 14px;
    color: #333;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Slide-out Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.mobile-menu-links a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-links a.logout-link {
    color: var(--danger);
}

.mobile-menu-links a.logout-link:hover {
    background: #fee2e2;
}

body.menu-open {
    overflow: hidden;
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    /* Show hamburger menu, hide regular nav */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Founder cards mobile layout */
    .founder-card {
        padding: 1rem;
    }
    
    .founder-card .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Better touch targets */
    .btn, button, input[type="submit"] {
        min-height: 44px;
    }
    
    /* Results page mobile */
    .results-summary {
        padding: 1rem;
    }
    
    .results-summary h2 {
        font-size: 1.3rem;
    }
    
    /* Match cards mobile */
    .match-details {
        padding: 1rem;
    }
    
    .match-reasons li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    /* File upload mobile */
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-area p {
        font-size: 0.9rem;
    }
    
    /* Subsector keywords mobile */
    .keyword-tags {
        flex-wrap: wrap;
    }
    
    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Competitor inputs mobile */
    .competitor-inputs input {
        font-size: 14px;
    }
    
    /* Progress indicator mobile */
    .progress-bar {
        height: 6px;
    }
    
    /* Admin improvements */
    .admin-container {
        padding: 1rem;
    }
    
    .admin-container h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .navbar .container {
        padding: 0 0.75rem;
    }
    
    .slogan {
        font-size: 0.65rem;
    }
    
    /* Compact form sections */
    .form-section {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    /* Smaller headings */
    .lead {
        font-size: 1rem;
    }
    
    /* Match card compact */
    .match-card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .match-rank {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Footer compact */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        text-align: center;
    }
    
    /* Feedback form mobile */
    .feedback-form {
        padding: 1rem;
    }
    
    .rating-slider {
        width: 100%;
    }
    
    /* Legal pages mobile */
    .legal-container {
        margin: 1rem;
    }
    
    .legal-section {
        padding: 1rem 0;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.user-details h1 {
    font-size: 1.5rem;
    margin: 0;
}

.user-email {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.btn-logout {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Pipeline Stats Box */
.pipeline-stats-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.stats-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.total-funds {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-label {
    font-size: 1rem;
    color: var(--text-light);
}

.stage-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stage-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stage-count-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stage-count-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* Dashboard Actions */
.dashboard-actions-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Pipeline Table */
.pipeline-table-container {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pipeline-table-container h2 {
    margin-bottom: 1rem;
}

.pipeline-table-wrapper {
    overflow-x: auto;
}

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

.pipeline-table th,
.pipeline-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pipeline-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pipeline-table tbody tr:hover {
    background: var(--bg-light);
}

.col-edit {
    width: 40px;
}

.col-fund {
    min-width: 200px;
}

.col-stage {
    width: 140px;
}

.col-interaction {
    width: 180px;
}

.btn-edit-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.fund-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fund-info .fund-name {
    font-weight: 600;
    color: var(--text-dark);
}

.fund-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.contact-person {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.person-title {
    color: var(--text-light);
}

.priority-badge {
    background: #fff3cd;
    color: #856404;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Stage badges */
.stage-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.stage-researching {
    background: #e8f4fd;
    color: #0d6efd;
}

.stage-to_contact {
    background: #fff3e0;
    color: #f57c00;
}

.stage-contacted {
    background: #e8f5e9;
    color: #2e7d32;
}

.stage-meeting_scheduled {
    background: #f3e5f5;
    color: #7b1fa2;
}

.stage-meeting_completed {
    background: #e0f2f1;
    color: #00695c;
}

.stage-in_diligence {
    background: #fce4ec;
    color: #c2185b;
}

.stage-term_sheet {
    background: #ffecb3;
    color: #ff6f00;
}

.stage-committed {
    background: #c8e6c9;
    color: #1b5e20;
}

.stage-passed {
    background: #f5f5f5;
    color: #757575;
}

.stage-not_interested {
    background: #ffebee;
    color: #c62828;
}

.interaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.interaction-type {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.interaction-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.no-interaction {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

/* Drafts Section */
.drafts-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.drafts-section h2 {
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.draft-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.draft-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.draft-name {
    font-weight: 500;
}

.draft-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.draft-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-small.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-small.btn-danger {
    background: #dc3545;
    color: var(--white);
}

/* Empty state */
.empty-state {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Person Cards */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
}

.btn-add-small {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-add-small:hover {
    background: var(--primary-dark);
}

.people-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-person-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.contact-person-card.is-primary {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.person-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.person-main-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.person-name {
    font-weight: 600;
    color: var(--text-dark);
}

.primary-badge {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.pending-badge {
    background: #fbbf24;
    color: #1f2937;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.person-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.btn-icon.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.person-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.person-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-link .icon {
    font-size: 0.7rem;
}

/* Input Toggle Buttons */
.input-toggle {
    display: flex;
    gap: 0;
    margin-top: 0.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toggle-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.toggle-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.toggle-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* Add/Edit Person Form */
.add-person-form,
.edit-person-form {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.add-person-form .form-row,
.edit-person-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.add-person-form .form-group,
.edit-person-form .form-group {
    margin-bottom: 0.5rem;
}

.add-person-form label,
.edit-person-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.add-person-form input,
.edit-person-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

.add-person-actions,
.edit-person-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stage-counts {
        gap: 1rem;
    }
    
    .stage-count-item {
        min-width: 60px;
    }
    
    .col-fund {
        min-width: 150px;
    }
    
    .pipeline-table th,
    .pipeline-table td {
        padding: 0.5rem;
    }
    
    .add-person-form .form-row,
    .edit-person-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .person-contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
