/* Meridian Design System — v2 */

/* ===== Theme Variables ===== */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #f1f5f9;
    --bg-nav: #0f172a;
    --bg-nav-hover: #1e293b;
    --bg-input: #ffffff;
    --bg-code: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    --border-focus: #6366f1;
    --border-glass: rgba(255, 255, 255, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #f8fafc;
    --text-link: #6366f1;
    --text-link-hover: #4f46e5;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-subtle: #eef2ff;
    --accent-text: #4338ca;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-text: #92400e;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --purple: #8b5cf6;
    --purple-bg: #f5f3ff;
    --purple-text: #5b21b6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --gradient-mesh: radial-gradient(at 27% 37%, #eef2ff 0px, transparent 50%), radial-gradient(at 97% 21%, #f0fdf4 0px, transparent 50%), radial-gradient(at 52% 99%, #faf5ff 0px, transparent 50%), radial-gradient(at 10% 29%, #eff6ff 0px, transparent 50%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #334155;
    --bg-nav: #020617;
    --bg-nav-hover: #0f172a;
    --bg-input: #1e293b;
    --bg-code: #334155;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --border-primary: #334155;
    --border-secondary: #475569;
    --border-focus: #818cf8;
    --border-glass: rgba(148, 163, 184, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;
    --text-link: #818cf8;
    --text-link-hover: #a5b4fc;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-subtle: #1e1b4b;
    --accent-text: #c7d2fe;
    --success: #34d399;
    --success-bg: #064e3b;
    --success-text: #6ee7b7;
    --warning: #fbbf24;
    --warning-bg: #451a03;
    --warning-text: #fde68a;
    --danger: #f87171;
    --danger-bg: #450a0a;
    --danger-text: #fca5a5;
    --purple: #a78bfa;
    --purple-bg: #1e1b4b;
    --purple-text: #c4b5fd;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-glow: 0 0 20px rgba(129, 140, 248, 0.15);
    --gradient-mesh: radial-gradient(at 27% 37%, #1e1b4b 0px, transparent 50%), radial-gradient(at 97% 21%, #064e3b 0px, transparent 50%), radial-gradient(at 52% 99%, #1e1b4b 0px, transparent 50%), radial-gradient(at 10% 29%, #0c4a6e 0px, transparent 50%);
}

/* ===== Base Styles ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-link-hover); }

/* ===== Navigation ===== */
.nav {
    background: var(--bg-nav);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(180%);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.nav-brand .brand-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.nav-links { display: flex; align-items: center; gap: 0.125rem; }

.nav-link {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover { color: #e2e8f0; background: var(--bg-nav-hover); }
.nav-link.active { color: #ffffff; background: rgba(99, 102, 241, 0.15); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: #6366f1;
    border-radius: 1px;
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Theme toggle */
.theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.theme-toggle:hover { color: #e2e8f0; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: rotate(15deg); }

/* ===== Layout ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.card-padded { padding: 1.5rem; }

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

/* Glass card variant */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
}

/* ===== KPI Cards ===== */
.kpi-card {
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
}

.kpi-card.kpi-blue::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.kpi-card.kpi-blue::after { background: #6366f1; }
.kpi-card.kpi-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-card.kpi-green::after { background: #10b981; }
.kpi-card.kpi-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-card.kpi-amber::after { background: #f59e0b; }
.kpi-card.kpi-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.kpi-card.kpi-red::after { background: #ef4444; }
.kpi-card.kpi-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.kpi-card.kpi-purple::after { background: #8b5cf6; }

.kpi-label { font-size: 0.6875rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.375rem;
    line-height: 1;
    letter-spacing: -0.03em;
}
.kpi-detail { font-size: 0.6875rem; color: var(--text-tertiary); margin-top: 0.375rem; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4); color: white; }

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.btn-purple:hover { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); color: white; }

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); color: white; }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
.btn-danger:hover { box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4); color: white; }

.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1c1917; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.btn-warning:hover { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-secondary); }

.btn-sm { font-size: 0.75rem; padding: 0.3125rem 0.75rem; }
.btn-xs { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }
.btn-lg { font-size: 0.9375rem; padding: 0.625rem 1.5rem; border-radius: var(--radius); }

.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* CTA button — big prominent action */
.btn-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-cta:hover { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4); color: white; }
.btn-cta .pulse-dot {
    width: 8px;
    height: 8px;
    background: #6ee7b7;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== Form Controls ===== */
.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), var(--shadow-sm);
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-checkbox {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

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

.table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table th.text-right { text-align: right; }
.table th.text-center { text-align: center; }

.table td {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
    border-top: 1px solid var(--border-primary);
}

.table td.text-right { text-align: right; }
.table td.text-center { text-align: center; }

.table tbody tr {
    transition: all var(--transition);
}
.table tbody tr:hover {
    background: var(--bg-hover);
}

/* Row stagger animation */
.table tbody tr.stagger-row {
    opacity: 0;
    transform: translateY(8px);
    animation: stagger-in 0.4s ease forwards;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.badge-ins { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.badge-vet { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.badge-ath { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-ent { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
.badge-re { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.badge-fin { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.badge-seek { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }

[data-theme="dark"] .badge-ins { background: linear-gradient(135deg, #1e3a5f, #1e40af40); color: #93c5fd; }
[data-theme="dark"] .badge-vet { background: linear-gradient(135deg, #064e3b, #065f4640); color: #6ee7b7; }
[data-theme="dark"] .badge-ath { background: linear-gradient(135deg, #451a03, #92400e40); color: #fde68a; }
[data-theme="dark"] .badge-ent { background: linear-gradient(135deg, #2e1065, #5b21b640); color: #c4b5fd; }
[data-theme="dark"] .badge-re { background: linear-gradient(135deg, #500724, #9d174d40); color: #f9a8d4; }
[data-theme="dark"] .badge-fin { background: linear-gradient(135deg, #1e1b4b, #3730a340); color: #a5b4fc; }
[data-theme="dark"] .badge-seek { background: linear-gradient(135deg, #450a0a, #991b1b40); color: #fca5a5; }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.status-clear { background: var(--success-bg); color: var(--success-text); }
.status-flagged { background: var(--danger-bg); color: var(--danger-text); }
.status-pending { background: var(--warning-bg); color: var(--warning-text); }
.status-verified { background: var(--success-bg); color: var(--success-text); }
.status-review { background: var(--warning-bg); color: var(--warning-text); }

/* ===== Background Check Chips ===== */
.bg-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}
.bg-check-chip-clear { background: var(--success-bg); color: var(--success-text); }
.bg-check-chip-danger { background: var(--danger-bg); color: var(--danger-text); }
.bg-check-chip-high { background: var(--danger-bg); color: var(--danger-text); }
.bg-check-chip-medium { background: var(--warning-bg); color: var(--warning-text); }
.bg-check-chip-low { background: var(--bg-tertiary); color: var(--text-secondary); }
.bg-check-conf {
    font-size: 0.5625rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ===== Score Tiers ===== */
.tier-cold { color: #64748b; }
.tier-warm { color: var(--warning); }
.tier-hot { color: #ea580c; }
.tier-very_hot { color: var(--danger); }

[data-theme="dark"] .tier-cold { color: #94a3b8; }

/* Score display */
.score-lg { font-size: 2rem; font-weight: 800; line-height: 1; }
.score-sm { font-size: 0.8125rem; font-weight: 700; }

/* ===== Score Ring (SVG donut) ===== */
.score-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 4;
}
.score-ring .ring-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-ring .ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-ring .ring-number {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.score-ring .ring-label {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-top: 1px;
}

/* Small score ring for table rows */
.score-ring-sm svg { width: 36px; height: 36px; }
.score-ring-sm .ring-bg, .score-ring-sm .ring-fill { stroke-width: 3.5; }
.score-ring-sm .ring-number { font-size: 0.6875rem; }
.score-ring-sm .ring-label { display: none; }

/* ===== Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-danger { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-info { background: var(--accent-subtle); color: var(--accent-text); border: 1px solid rgba(99, 102, 241, 0.2); }
.alert-purple { background: var(--purple-bg); color: var(--purple-text); border: 1px solid rgba(139, 92, 246, 0.2); }

/* ===== Progress Bars ===== */
.progress-track {
    height: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated fill — starts at 0, grows on page load */
.progress-fill-animated { width: 0 !important; }
.progress-fill-animated.loaded { width: var(--target-width) !important; }

.progress-fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.progress-fill-orange { background: linear-gradient(90deg, #ea580c, #f97316); }
.progress-fill-amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-fill-gray { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.progress-fill-indigo { background: linear-gradient(90deg, #6366f1, #818cf8); }
.progress-fill-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.progress-fill-green { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-fill-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

/* ===== Funnel ===== */
.funnel-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    position: relative;
}
.funnel-step + .funnel-step { border-top: 1px solid var(--border-primary); }

.funnel-bar-wrap {
    flex: 1;
    position: relative;
}
.funnel-bar {
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    position: relative;
    overflow: hidden;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.funnel-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.15));
    pointer-events: none;
}
.funnel-bar span {
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.funnel-label {
    width: 10rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.funnel-count {
    width: 6rem;
    text-align: right;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ===== Insight Cards ===== */
.insight-card {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
}
.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.insight-card.insight-action::before { background: linear-gradient(180deg, #6366f1, #8b5cf6); }
.insight-card.insight-warning::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.insight-card.insight-ready::before { background: linear-gradient(180deg, #10b981, #34d399); }

.insight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.insight-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}
.insight-action .insight-badge { color: var(--accent-text); }
.insight-action .insight-badge .pulse-dot { background: var(--accent); }
.insight-warning .insight-badge { color: var(--warning-text); }
.insight-warning .insight-badge .pulse-dot { background: var(--warning); }
.insight-ready .insight-badge { color: var(--success-text); }
.insight-ready .insight-badge .pulse-dot { background: var(--success); }

.insight-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.insight-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0.375rem 0 1rem;
    line-height: 1.4;
}

/* ===== Credit Pill ===== */
.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    letter-spacing: -0.01em;
}

.credit-pill.credit-ok { color: var(--success); }
.credit-pill.credit-warn { color: var(--warning); }
.credit-pill.credit-low { color: var(--danger); }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

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

.pagination-buttons { display: flex; align-items: center; gap: 0.25rem; }

.page-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); transform: translateY(-1px); }
.page-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.page-btn.ellipsis { border: none; background: none; cursor: default; color: var(--text-tertiary); }

/* ===== Filter Bar ===== */
.filter-bar {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.filter-group { display: flex; flex-direction: column; }
.filter-group.flex-1 { flex: 1; min-width: 200px; }

.filter-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
    padding: 0.1875rem 0;
}

.filter-check:hover { color: var(--text-primary); }

/* ===== DQ Banner ===== */
.dq-banner {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* ===== Hero / Mesh Background ===== */
.hero-mesh {
    background: var(--gradient-mesh);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.3;
    pointer-events: none;
}
.hero-mesh > * { position: relative; z-index: 1; }

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-hover) 37%,
        var(--bg-tertiary) 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 0.875rem; margin-bottom: 0.5rem; }
.skeleton-text.w-3\/4 { width: 75%; }
.skeleton-text.w-1\/2 { width: 50%; }
.skeleton-text.w-1\/3 { width: 33%; }
.skeleton-text.w-full { width: 100%; }

.skeleton-circle { border-radius: 50%; }
.skeleton-card {
    height: 7rem;
    border-radius: var(--radius-lg);
}

.skeleton-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
}
.skeleton-row:last-child { border-bottom: none; }

/* Loading overlay for content swap */
.loading-overlay {
    position: relative;
}
.loading-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    border-radius: var(--radius-lg);
}
.loading-overlay.is-loading::after {
    opacity: 0.5;
    pointer-events: all;
}

/* ===== Animations ===== */
@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ring-draw {
    from { stroke-dashoffset: var(--ring-circumference); }
    to { stroke-dashoffset: var(--ring-offset); }
}

@keyframes slide-right {
    from { width: 0; }
    to { width: var(--target-width); }
}

/* Stagger utility classes */
.animate-fade-up {
    opacity: 0;
    animation: fade-up 0.5s ease forwards;
}
.animate-scale-in {
    opacity: 0;
    animation: scale-in 0.4s ease forwards;
}
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ===== Gradient Divider ===== */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-secondary), transparent);
    border: none;
    margin: 2rem 0;
}

/* ===== Utilities ===== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.col-span-2 { grid-column: span 2; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.w-36 { width: 9rem; }
.hidden { display: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
    .md-grid-2 { grid-template-columns: 1fr; }
    .md-grid-3 { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }
    .nav-links { gap: 0; }
    .nav-link { padding: 0.375rem 0.5rem; font-size: 0.75rem; }
    .section-title { font-size: 1.375rem; }
    .hero-mesh { padding: 1.25rem; }
    .kpi-value { font-size: 1.75rem; }
}

@media (min-width: 769px) {
    .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .md-col-span-2 { grid-column: span 2; }
}

/* ===== Details/Summary ===== */
details.card summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    list-style: none;
}

details.card summary::-webkit-details-marker { display: none; }
details.card summary::before { content: '\25B6'; margin-right: 0.5rem; font-size: 0.625rem; transition: transform var(--transition); display: inline-block; }
details.card[open] summary::before { transform: rotate(90deg); }
details.card summary:hover { color: var(--text-primary); }
details.card .detail-content { padding: 0 1.5rem 1.5rem; }

/* ===== Page Fade-In ===== */
.page-content {
    animation: fade-up 0.4s ease forwards;
}

/* ===== Table Row Hover Accent ===== */
.table tbody tr {
    border-left: 3px solid transparent;
}
.table tbody tr:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent);
}

/* ===== Score Ring Glow ===== */
.score-ring-glow-hot .ring-fill {
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.4));
}
.score-ring-glow-very_hot .ring-fill {
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

/* ===== Button Loading State ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.3s ease forwards;
    max-width: 24rem;
}
.toast-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.toast-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(1rem); }
}

/* ===== Gradient Border Card Hover ===== */
.card-gradient-hover {
    position: relative;
}
.card-gradient-hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}
.card-gradient-hover:hover::before {
    opacity: 1;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.15;
    filter: grayscale(1);
}
.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}
.empty-state-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Confidence Meter ===== */
.confidence-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}
.confidence-meter-bar {
    flex: 1;
    height: 6px;
    background: var(--border-primary);
    border-radius: 9999px;
    overflow: hidden;
}
.confidence-meter-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    transition: width 0.8s ease;
}
.confidence-meter-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Contact Completeness Dots ===== */
.contact-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.contact-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-tertiary);
}
.contact-dot-filled {
    color: var(--success);
}
.contact-dot .dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-primary);
}
.contact-dot-filled .dot-indicator {
    background: var(--success);
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

/* ===== Next Actions Panel ===== */
.next-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.8125rem;
}
.next-action + .next-action {
    border-top: 1px solid var(--border-primary);
}
.next-action-pts {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--success);
    background: var(--success-bg);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* ===== Equal-height grid cards ===== */
.grid > .card,
.grid > a > .card { height: 100%; }
.grid > a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.insight-card { display: flex; flex-direction: column; }
.insight-card .btn { margin-top: auto; align-self: flex-start; }

/* ===== Clickable KPI ===== */
a.kpi-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.kpi-card-link > .card { flex: 1; }
a.kpi-card-link:hover .card {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* ===== Clickable Table Rows ===== */
tr[data-href] {
    cursor: pointer;
}
tr[data-href]:hover {
    background: var(--bg-hover);
}
tr[data-href] a {
    color: inherit;
}

/* ===== Help Tooltip ===== */
.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    font-size: 0.5625rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 0.375rem;
    flex-shrink: 0;
    transition: all var(--transition);
}
.help-tip:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
}
.help-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-nav);
    color: var(--text-inverse);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    max-width: 280px;
    white-space: normal;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 60;
    box-shadow: var(--shadow-lg);
}
.help-tip:hover::after {
    opacity: 1;
}

/* ===== HTMX ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* ===== Tailwind Dark Mode Overrides ===== */
[data-theme="dark"] .bg-white { background: var(--bg-secondary) !important; }
[data-theme="dark"] .bg-gray-50 { background: var(--bg-tertiary) !important; }
[data-theme="dark"] .bg-gray-100 { background: var(--bg-tertiary) !important; }
[data-theme="dark"] .text-gray-900 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-gray-800 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-gray-700 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-600 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-gray-500 { color: var(--text-tertiary) !important; }
[data-theme="dark"] .text-gray-400 { color: var(--text-tertiary) !important; }
[data-theme="dark"] .border-gray-100 { border-color: var(--border-primary) !important; }
[data-theme="dark"] .border-gray-200 { border-color: var(--border-primary) !important; }
[data-theme="dark"] .border-gray-300 { border-color: var(--border-secondary) !important; }
[data-theme="dark"] .divide-gray-200 > * + * { border-color: var(--border-primary) !important; }
[data-theme="dark"] .shadow-sm { box-shadow: var(--shadow-sm) !important; }
[data-theme="dark"] .bg-green-50 { background: var(--success-bg) !important; }
[data-theme="dark"] .bg-green-100 { background: #064e3b !important; }
[data-theme="dark"] .bg-red-50 { background: var(--danger-bg) !important; }
[data-theme="dark"] .bg-red-100 { background: #450a0a !important; }
[data-theme="dark"] .bg-blue-50 { background: #1e1b4b !important; }
[data-theme="dark"] .bg-blue-100 { background: #1e3a5f !important; }
[data-theme="dark"] .bg-amber-50 { background: var(--warning-bg) !important; }
[data-theme="dark"] .bg-purple-50 { background: var(--purple-bg) !important; }
[data-theme="dark"] .bg-purple-100 { background: #2e1065 !important; }
[data-theme="dark"] .bg-yellow-100 { background: #451a03 !important; }
[data-theme="dark"] .text-green-700,
[data-theme="dark"] .text-green-800 { color: var(--success-text) !important; }
[data-theme="dark"] .text-green-600 { color: var(--success) !important; }
[data-theme="dark"] .text-red-600 { color: var(--danger) !important; }
[data-theme="dark"] .text-red-700,
[data-theme="dark"] .text-red-800 { color: var(--danger-text) !important; }
[data-theme="dark"] .text-amber-600 { color: var(--warning) !important; }
[data-theme="dark"] .text-amber-500 { color: var(--warning) !important; }
[data-theme="dark"] .text-blue-500,
[data-theme="dark"] .text-blue-700,
[data-theme="dark"] .text-blue-900 { color: #93c5fd !important; }
[data-theme="dark"] .text-purple-700,
[data-theme="dark"] .text-purple-800 { color: var(--purple-text) !important; }
[data-theme="dark"] .text-indigo-600 { color: var(--text-link) !important; }
[data-theme="dark"] .text-indigo-500 { color: var(--text-link) !important; }
[data-theme="dark"] .border-green-200 { border-color: #065f46 !important; }
[data-theme="dark"] .border-red-200 { border-color: #991b1b !important; }
[data-theme="dark"] .border-blue-200 { border-color: #1e40af !important; }
[data-theme="dark"] .border-amber-200 { border-color: #92400e !important; }
[data-theme="dark"] .border-purple-200,
[data-theme="dark"] .border-purple-300 { border-color: #5b21b6 !important; }
[data-theme="dark"] .border-indigo-200 { border-color: #3730a3 !important; }
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}
[data-theme="dark"] input::placeholder { color: var(--text-tertiary) !important; }
[data-theme="dark"] input[type="file"]::file-selector-button {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .hover\:bg-gray-50:hover { background: var(--bg-hover) !important; }
[data-theme="dark"] .hover\:bg-gray-100:hover { background: var(--bg-hover) !important; }
[data-theme="dark"] .hover\:bg-blue-100:hover { background: #1e3a5f !important; }
[data-theme="dark"] .hover\:bg-green-100:hover { background: #064e3b !important; }
[data-theme="dark"] .hover\:text-gray-700:hover,
[data-theme="dark"] .hover\:text-gray-900:hover { color: var(--text-primary) !important; }
[data-theme="dark"] .hover\:text-indigo-800:hover { color: var(--text-link-hover) !important; }
