/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --bg-control: #1f2937;
    --border-color: #374151;
    --border-hover: #4b5563;
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    
    /* 5-Tier Rating Colors */
    --love: #ec4899;
    --love-hover: #db2777;
    --love-light: rgba(236, 72, 153, 0.12);
    
    --like: #10b981;
    --like-hover: #059669;
    --like-light: rgba(16, 185, 129, 0.12);
    
    --neutral: #8492a6;
    --neutral-hover: #6b788a;
    --neutral-light: rgba(132, 146, 166, 0.15);
    
    --redflag: #f59e0b;
    --redflag-hover: #d97706;
    --redflag-light: rgba(245, 158, 11, 0.12);
    
    --super-redflag: #ef4444;
    --super-redflag-hover: #dc2626;
    --super-redflag-light: rgba(239, 68, 68, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 25, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 24px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f472b6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 8px;
    color: var(--accent);
}

/* Dashboard Metrics */
.metrics-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.metric-card .val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.metric-card.love .icon { color: var(--love); }
.metric-card.like .icon { color: var(--like); }
.metric-card.neutral .icon { color: var(--neutral); }
.metric-card.redflag .icon { color: var(--redflag); }
.metric-card.super-redflag .icon { color: var(--super-redflag); }

.metric-card.love { border-color: rgba(236, 72, 153, 0.2); }
.metric-card.like { border-color: rgba(16, 185, 129, 0.2); }
.metric-card.neutral { border-color: rgba(132, 146, 166, 0.2); }
.metric-card.redflag { border-color: rgba(245, 158, 11, 0.2); }
.metric-card.super-redflag { border-color: rgba(239, 68, 68, 0.2); }

/* Main layout container */
main {
    max-width: 1440px;
    margin: 32px auto;
    padding: 0 24px;
}

/* File Import / Welcome Zone */
.import-zone {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent), var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.import-zone:hover, .import-zone.dragover {
    border-color: var(--accent);
    background-color: rgba(99, 102, 241, 0.02);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.import-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.import-zone h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 22px;
}

.import-zone p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-import:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Hidden file input */
#csv-file-input {
    display: none;
}

/* Control Panel (Search, Filters, Sort, Export) */
.controls-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-tab {
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-tab.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-tab.active.tab-love {
    background: var(--love-light);
    border-color: var(--love);
    color: var(--love);
}

.btn-tab.active.tab-liked {
    background: var(--like-light);
    border-color: var(--like);
    color: var(--like);
}

.btn-tab.active.tab-neutral {
    background: var(--neutral-light);
    border-color: var(--neutral);
    color: var(--neutral);
}

.btn-tab.active.tab-redflag {
    background: var(--redflag-light);
    border-color: var(--redflag);
    color: var(--redflag);
}

.btn-tab.active.tab-super-redflag {
    background: var(--super-redflag-light);
    border-color: var(--super-redflag);
    color: var(--super-redflag);
}

.advanced-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.select-wrapper {
    position: relative;
    min-width: 140px;
    flex: 1;
    max-width: 220px;
}

.select-wrapper label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.select-wrapper select {
    width: 100%;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--accent);
}

.select-wrapper::after {
    content: "▼";
    font-size: 9px;
    color: var(--text-muted);
    position: absolute;
    right: 12px;
    bottom: 12px;
    pointer-events: none;
}

.controls-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.btn-secondary {
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-export {
    background: var(--like-light);
    border: 1px solid var(--like);
    color: var(--like);
}

.btn-export:hover {
    background: var(--like);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Startup Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.startup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.startup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--transition);
}

.startup-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* 5-Tier Rated Card Styling Indicators */
.startup-card.state-love::before { background: var(--love); }
.startup-card.state-love {
    border-color: rgba(236, 72, 153, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(236, 72, 153, 0.02) 100%);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.05);
}

.startup-card.state-liked::before { background: var(--like); }
.startup-card.state-liked {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.02) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}

.startup-card.state-neutral::before { background: var(--neutral); }
.startup-card.state-neutral {
    border-color: rgba(132, 146, 166, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(132, 146, 166, 0.01) 100%);
}

.startup-card.state-redflag::before { background: var(--redflag); }
.startup-card.state-redflag {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.01) 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.04);
}

.startup-card.state-super-redflag::before { background: var(--super-redflag); }
.startup-card.state-super-redflag {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.02) 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.05);
}

/* Card Job Status Styling States */
.startup-card.card-applied {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08) !important;
}
.startup-card.card-applied::before {
    background: var(--like) !important;
}

.startup-card.card-followed {
    border-color: rgba(99, 102, 241, 0.55) !important;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.06) 100%) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12) !important;
}
.startup-card.card-followed::before {
    background: var(--accent) !important;
}

.card-header {
    margin-bottom: 12px;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.startup-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-batch {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.badge-industry {
    background: rgba(156, 163, 175, 0.15);
    color: #e5e7eb;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-sweet-spot {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-special {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fdba74;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-applied {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-followed {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Card Body Metadata */
.card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    padding: 12px 0;
}

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

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.detail-val {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Description */
.card-description {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.card-description.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.btn-toggle-desc {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 16px;
    text-align: left;
    display: inline-block;
    padding: 4px 0;
    transition: var(--transition);
}

.btn-toggle-desc:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Card Action Row - Compact 5-button bar */
.card-actions {
    display: flex;
    gap: 4px;
    width: 100%;
}

.btn-rate-node {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    background: var(--bg-control);
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-rate-node svg {
    width: 14px;
    height: 14px;
}

/* Hover effects for 5-button rating bar */
.btn-rate-node.rate-love:hover {
    background: var(--love-light);
    border-color: var(--love);
    color: var(--love);
}

.btn-rate-node.rate-like:hover {
    background: var(--like-light);
    border-color: var(--like);
    color: var(--like);
}

.btn-rate-node.rate-neutral:hover {
    background: var(--neutral-light);
    border-color: var(--neutral);
    color: var(--neutral);
}

.btn-rate-node.rate-redflag:hover {
    background: var(--redflag-light);
    border-color: var(--redflag);
    color: var(--redflag);
}

.btn-rate-node.rate-super-redflag:hover {
    background: var(--super-redflag-light);
    border-color: var(--super-redflag);
    color: var(--super-redflag);
}

/* Selected active button states */
.startup-card.state-love .btn-rate-node.rate-love {
    background: var(--love);
    border-color: var(--love);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.startup-card.state-liked .btn-rate-node.rate-like {
    background: var(--like);
    border-color: var(--like);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.startup-card.state-neutral .btn-rate-node.rate-neutral {
    background: var(--neutral);
    border-color: var(--neutral);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(132, 146, 166, 0.3);
}

.startup-card.state-redflag .btn-rate-node.rate-redflag {
    background: var(--redflag);
    border-color: var(--redflag);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.startup-card.state-super-redflag .btn-rate-node.rate-super-redflag {
    background: var(--super-redflag);
    border-color: var(--super-redflag);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Rating Pill on Card */
.rating-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    display: none;
}

.startup-card.state-love .rating-pill {
    display: block;
    background: var(--love-light);
    color: var(--love);
    border: 1px solid var(--love);
}

.startup-card.state-liked .rating-pill {
    display: block;
    background: var(--like-light);
    color: var(--like);
    border: 1px solid var(--like);
}

.startup-card.state-neutral .rating-pill {
    display: block;
    background: var(--neutral-light);
    color: var(--neutral);
    border: 1px solid var(--neutral);
}

.startup-card.state-redflag .rating-pill {
    display: block;
    background: var(--redflag-light);
    color: var(--redflag);
    border: 1px solid var(--redflag);
}

.startup-card.state-super-redflag .rating-pill {
    display: block;
    background: var(--super-redflag-light);
    color: var(--super-redflag);
    border: 1px solid var(--super-redflag);
}

/* No items / Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 40px auto;
}

.empty-state-icon {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Alert Notification toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
}

.toast.toast-success { border-left-color: var(--like); }
.toast.toast-danger { border-left-color: var(--super-redflag); }

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .metrics-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .controls-actions {
        width: 100%;
        margin-left: 0;
        align-self: auto;
    }
    .btn-secondary {
        flex: 1;
    }
    .select-wrapper {
        max-width: none;
    }
}

/* Custom Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 20px;
}
.modal-content p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.5;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.btn-danger-action {
    background: var(--super-redflag) !important;
    border-color: var(--super-redflag) !important;
    color: var(--text-primary) !important;
}
.btn-danger-action:hover {
    background: var(--super-redflag-hover) !important;
    border-color: var(--super-redflag-hover) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Sync Badge Status indicator in header */
.sync-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
}
.sync-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-synced {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.status-synced::before {
    background: #10b981;
}
.status-offline {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.status-offline::before {
    background: #f59e0b;
}
.status-connecting {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.status-connecting::before {
    background: #6366f1;
    animation: pulse 1s infinite alternate;
}
.status-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.status-error::before {
    background: #ef4444;
}
.btn-settings {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-settings:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-control);
}

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Results Counter Bar style */
.results-counter-bar {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    width: fit-content;
}
.results-highlight {
    color: var(--text-primary);
    font-weight: 700;
}

/* Clickable Startup name YC profile link style */
.startup-name-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.startup-name-link:hover {
    color: var(--accent);
}
.startup-name-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
    transition: var(--transition);
}
.startup-name-link:hover svg {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* E-Copy Button inside card title header */
.btn-ecopy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}
.btn-ecopy:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ecopy svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}
.btn-ecopy:hover svg {
    opacity: 1;
}/* Header Actions grouping */
.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Note button inside header */
.btn-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}
.btn-note:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}
.btn-note.has-note {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.btn-note svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}
.btn-note:hover svg {
    opacity: 1;
}

/* Rubric Toggle button inside card header actions */
.btn-rubric-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
}
.btn-rubric-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}
.btn-rubric-toggle.has-rubric {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}
.btn-rubric-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.35);
}
.btn-rubric-toggle svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}
.btn-rubric-toggle:hover svg, .btn-rubric-toggle.active svg {
    opacity: 1;
}

/* Card Job Status Tracking Action Row */
.card-tracking-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
    width: 100%;
}

.btn-tracking {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-control);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tracking:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-tracking svg {
    width: 13px;
    height: 13px;
    opacity: 0.75;
    transition: var(--transition);
}

.btn-tracking:hover svg {
    opacity: 1;
}

.btn-tracking.btn-applied-toggle.active-applied {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.btn-tracking.btn-applied-toggle.active-applied svg {
    color: #34d399;
    opacity: 1;
}

.btn-tracking.btn-followed-toggle.active-followed {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.btn-tracking.btn-followed-toggle.active-followed svg {
    color: #a5b4fc;
    opacity: 1;
}

/* Card Notes bubble display box */
.card-notes-bubble {
    margin-top: 16px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px dashed rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
    position: relative;
    text-align: left;
}
.card-notes-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-notes-text {
    line-height: 1.45;
    white-space: pre-wrap; /* preserve user line breaks in notes! */
}

/* Rubric System styling */
.badge.badge-score {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.badge.badge-score:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--text-primary);
}

.badge.badge-score.has-score {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) var(--score-percent, 0%), rgba(31, 41, 55, 0.4) var(--score-percent, 0%));
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
    font-weight: 600;
}

.badge.badge-score.score-high {
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) var(--score-percent, 0%), rgba(31, 41, 55, 0.4) var(--score-percent, 0%));
}

.badge.badge-score.score-high:hover {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.badge.badge-score.score-medium {
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) var(--score-percent, 0%), rgba(31, 41, 55, 0.4) var(--score-percent, 0%));
}

.badge.badge-score.score-medium:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.badge.badge-score.score-low {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) var(--score-percent, 0%), rgba(31, 41, 55, 0.4) var(--score-percent, 0%));
}

.badge.badge-score.score-low:hover {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

/* Collapsible Rubric Panel */
.card-rubric-panel {
    margin-top: 16px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    animation: slideDown 0.2s ease-out;
}

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

.rubric-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.rubric-label {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.rubric-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.rubric-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.rubric-val-highlight {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    min-width: 36px;
    text-align: center;
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.rubric-value {
    flex-shrink: 0;
    width: 180px;
}

.rubric-select, .rubric-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12.5px;
    padding: 6px 10px;
    outline: none;
    transition: var(--transition);
}

.rubric-select:focus, .rubric-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.25);
}

.rubric-summary {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-score {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Premium Segmented Controls & Text Inputs */
.segment-bar {
    display: flex;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
    width: 180px;
    margin-left: auto;
}

.segment-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10.5px;
    padding: 5px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.segment-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.segment-btn.active {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.segment-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.rubric-input-wrapper {
    width: 180px;
    flex-shrink: 0;
    margin-left: auto;
}

.rubric-text-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
    transition: var(--transition);
}

.rubric-text-input:focus {
    border-color: var(--accent);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.25);
}

/* Weight Badge & Icon Groupings */
.rubric-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rubric-title-icon {
    font-size: 13px;
    opacity: 0.85;
}

.rubric-weight-tag {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border-radius: 4px;
    letter-spacing: 0.2px;
    line-height: 1;
}

.rubric-weight-tag.type-not-scored {
    background: rgba(132, 146, 166, 0.1);
    border-color: rgba(132, 146, 166, 0.2);
    color: var(--text-muted);
}

/* Disabled Row Layout */
.rubric-row.disabled-row .segment-bar {
    opacity: 0.3;
    pointer-events: none;
}

.rubric-row.disabled-row .rubric-title {
    color: var(--text-muted);
}

/* Card Founder Toggle next to Score badge */
.card-founder-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    user-select: none;
    text-transform: uppercase;
}

.card-founder-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.card-founder-toggle input {
    accent-color: var(--accent);
    cursor: pointer;
    width: 12px;
    height: 12px;
    margin: 0;
}

/* Pay Segment Bar (slightly wider for text labels) */
.pay-segment-bar {
    width: 240px;
}

.segment-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.segment-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.segment-toggle-label:hover {
    color: var(--text-primary);
}

.segment-toggle-label input {
    accent-color: var(--accent);
    cursor: pointer;
    width: 12px;
    height: 12px;
    margin: 0;
}

