/* ═══════════════════════════════════════════════════════════
   NINTH.vc — Design System
   Abstract Toning: Deep Obsidian + Electric Violet + Teal Cyan
   Dark-first with full light mode support
═══════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS VARIABLES — DARK MODE (DEFAULT) ── */
:root {
  /* Backgrounds */
  --bg-base:       #080B14;
  --bg-surface:    #0D1120;
  --bg-elevated:   #111827;
  --bg-card:       #131C2E;
  --bg-card-hover: #172035;
  --bg-input:      #0F1623;
  --bg-sidebar:    #090D18;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --border-focus:  rgba(108,99,255,0.6);

  /* Text */
  --text-primary:  #F0F4FF;
  --text-secondary:#8B9CC8;
  --text-muted:    #4A5578;
  --text-inverse:  #080B14;

  /* Brand Colors */
  --violet:        #6C63FF;
  --violet-light:  #A78BFA;
  --violet-dim:    rgba(108,99,255,0.15);
  --teal:          #00D4AA;
  --teal-light:    #34D399;
  --teal-dim:      rgba(0,212,170,0.12);
  --amber:         #F59E0B;
  --amber-dim:     rgba(245,158,11,0.12);
  --rose:          #EC4899;
  --rose-dim:      rgba(236,72,153,0.12);
  --cyan:          #22D3EE;
  --cyan-dim:      rgba(34,211,238,0.1);

  /* Gradients */
  --grad-brand:    linear-gradient(135deg, #6C63FF 0%, #00D4AA 100%);
  --grad-violet:   linear-gradient(135deg, #6C63FF 0%, #A78BFA 100%);
  --grad-teal:     linear-gradient(135deg, #00D4AA 0%, #22D3EE 100%);
  --grad-dark:     linear-gradient(135deg, #0D1120 0%, #131C2E 100%);
  --grad-hero:     radial-gradient(ellipse at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 60%),
                   radial-gradient(ellipse at 70% 20%, rgba(0,212,170,0.1) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-violet: 0 4px 24px rgba(108,99,255,0.25);
  --shadow-teal:   0 4px 24px rgba(0,212,170,0.2);

  /* Spacing */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  /* Sidebar */
  --sidebar-w:     240px;
  --nav-h:         60px;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg-base:       #F4F6FB;
  --bg-surface:    #ECEEF5;
  --bg-elevated:   #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F8F9FF;
  --bg-input:      #F0F2FA;
  --bg-sidebar:    #1A1F35;

  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --border-focus:  rgba(108,99,255,0.5);

  --text-primary:  #0F1623;
  --text-secondary:#4A5578;
  --text-muted:    #8B9CC8;
  --text-inverse:  #F0F4FF;

  --violet-dim:    rgba(108,99,255,0.1);
  --teal-dim:      rgba(0,212,170,0.1);
  --amber-dim:     rgba(245,158,11,0.1);
  --rose-dim:      rgba(236,72,153,0.1);

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-violet: 0 4px 24px rgba(108,99,255,0.15);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; }

a { color: var(--violet-light); text-decoration: none; cursor: pointer; }
a:hover { color: var(--teal); }

input, textarea, select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}

textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

canvas { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ═══════════════════════════════════════════════════════════
   GLOBAL NAV
═══════════════════════════════════════════════════════════ */
.global-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .global-nav {
  background: rgba(244,246,251,0.9);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  cursor: pointer; letter-spacing: -0.5px;
}

.logo-ninth { color: var(--text-primary); }
.logo-dot { color: var(--violet); }

.nav-center {
  font-size: 13px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--violet); color: var(--violet); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.theme-toggle svg { width: 16px; height: 16px; }

.nav-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: var(--grad-violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}

.notification-bell {
  position: relative; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.notification-bell:hover { border-color: var(--amber); color: var(--amber); }
.notification-bell svg { width: 16px; height: 16px; }

.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--rose);
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-base);
}

/* Notification Panel */
.notif-panel {
  position: fixed; top: var(--nav-h); right: 0; z-index: 999;
  width: 360px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: 80vh; overflow-y: auto;
}
.notif-panel.open { transform: translateX(0); }

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif; font-weight: 600;
}
.notif-panel-header button {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
}
.notif-panel-header button svg { width: 16px; height: 16px; }

.notif-list { padding: 8px; }

.notif-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.notif-item:hover { background: var(--bg-elevated); }
.notif-item.notif-interest { border-left-color: var(--violet); }
.notif-item.notif-meeting { border-left-color: var(--teal); }
.notif-item.notif-alert { border-left-color: var(--amber); }

.notif-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.notif-sub { font-size: 12px; color: var(--text-muted); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

/* ═══════════════════════════════════════════════════════════
   SCREENS
═══════════════════════════════════════════════════════════ */
.screen {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.screen.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   LANDING
═══════════════════════════════════════════════════════════ */
.landing-bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--bg-base);
  overflow: hidden;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(108,99,255,0.4), transparent); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,170,0.3), transparent); bottom: -150px; right: -100px; animation-delay: 3s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(236,72,153,0.2), transparent); top: 40%; left: 40%; animation-delay: 6s; }
.orb-admin-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,170,0.3), transparent); top: -100px; right: -100px; animation-delay: 0s; }
.orb-admin-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(108,99,255,0.25), transparent); bottom: -100px; left: -100px; animation-delay: 4s; }
.orb-inv-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,158,11,0.2), transparent); top: -100px; left: -100px; animation-delay: 0s; }
.orb-inv-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(108,99,255,0.3), transparent); bottom: -100px; right: -100px; animation-delay: 4s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.landing-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: calc(100vh - var(--nav-h));
  padding: 60px 24px; text-align: center;
}

.landing-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--violet-dim);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; color: var(--violet-light);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.landing-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800; line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-admin {
  background: linear-gradient(135deg, #00D4AA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-inv {
  background: linear-gradient(135deg, #F59E0B, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-dot { color: var(--violet); }

.landing-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.6;
  margin-bottom: 48px;
}

.portal-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 900px; width: 100%;
  margin-bottom: 48px;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-align: left; position: relative; overflow: hidden;
}
.portal-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-brand); opacity: 0;
  transition: opacity 0.3s;
}
.portal-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--shadow-violet); }
.portal-card:hover::before { opacity: 0.04; }

.portal-card-center {
  border-color: rgba(0,212,170,0.3);
  background: linear-gradient(135deg, rgba(0,212,170,0.05), rgba(108,99,255,0.05));
}

.portal-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.portal-icon-wrap svg { width: 22px; height: 22px; }
.portal-founder { background: var(--violet-dim); color: var(--violet); }
.portal-admin { background: var(--teal-dim); color: var(--teal); }
.portal-investor { background: var(--amber-dim); color: var(--amber); }

.portal-label { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.portal-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.portal-arrow { color: var(--text-muted); }
.portal-arrow svg { width: 18px; height: 18px; }

.landing-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 32px;
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-num { display: block; font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ═══════════════════════════════════════════════════════════
   AUTH SCREENS
═══════════════════════════════════════════════════════════ */
.auth-bg { position: fixed; inset: 0; z-index: 0; background: var(--bg-base); overflow: hidden; }

.auth-container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px; gap: 60px;
  align-items: center;
}

.auth-brand {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
  cursor: pointer; margin-bottom: 32px; display: inline-block;
}

.auth-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  line-height: 1.1; margin-bottom: 16px;
}

.auth-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }

.auth-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.auth-feat svg { width: 16px; height: 16px; color: var(--violet); flex-shrink: 0; }

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card-header { margin-bottom: 24px; }
.auth-card-header h3 { font-size: 22px; font-weight: 700; margin-top: 10px; }

.auth-role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.auth-role-badge svg { width: 12px; height: 12px; }
.founder-badge { background: var(--violet-dim); color: var(--violet-light); border: 1px solid rgba(108,99,255,0.3); }
.admin-badge { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); }
.investor-badge { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--border-focus); }
.input-wrap svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.input-wrap input, .input-wrap select { background: transparent; }

.form-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--violet); cursor: pointer; }
.checkbox-label.large { font-size: 14px; align-items: flex-start; }

.link-sm { font-size: 13px; color: var(--violet-light); }

.auth-divider { text-align: center; margin: 16px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--bg-card); padding: 0 12px; font-size: 12px; color: var(--text-muted); }

.auth-demo-info {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--violet-dim);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-secondary);
}
.auth-demo-info svg { width: 14px; height: 14px; color: var(--violet); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   APP LAYOUT
═══════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; flex-shrink: 0;
}

.sidebar-admin { border-right-color: rgba(0,212,170,0.15); }
.sidebar-investor { border-right-color: rgba(245,158,11,0.15); }

.sidebar-logo {
  padding: 20px 20px 16px;
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800;
  cursor: pointer; border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active { background: var(--violet-dim); color: var(--violet-light); }
.sidebar-admin .nav-item.active { background: var(--teal-dim); color: var(--teal); }
.sidebar-investor .nav-item.active { background: var(--amber-dim); color: var(--amber); }

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.sidebar-user { display: flex; align-items: center; gap: 10px; }
.avatar-sm {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.founder-avatar { background: var(--grad-violet); }
.admin-avatar { background: var(--grad-teal); }
.investor-avatar { background: linear-gradient(135deg, #F59E0B, #EC4899); }

.user-name-sm { font-size: 13px; font-weight: 600; }
.user-role-sm { font-size: 11px; color: var(--text-muted); }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1; padding: 28px 32px;
  overflow-y: auto; min-width: 0;
  background: var(--bg-base);
}

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}

.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px; font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.btn-back:hover { border-color: var(--violet); color: var(--violet); }
.btn-back svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--grad-violet);
  border: none; border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: white; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(108,99,255,0.4); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary svg { width: 16px; height: 16px; }

.btn-admin { background: var(--grad-teal); box-shadow: var(--shadow-teal); }
.btn-admin:hover { box-shadow: 0 6px 28px rgba(0,212,170,0.4); }

.btn-investor { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.btn-investor:hover { box-shadow: 0 6px 28px rgba(245,158,11,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-outline svg { width: 16px; height: 16px; }

.btn-ghost-sm {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px;
  border-radius: var(--radius-sm); transition: color 0.2s;
  display: flex; align-items: center;
}
.btn-ghost-sm:hover { color: var(--text-primary); }
.btn-ghost-sm svg { width: 16px; height: 16px; }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.card-header h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}
.card-header h3 svg { width: 16px; height: 16px; color: var(--violet); }

/* ═══════════════════════════════════════════════════════════
   BADGES & CHIPS
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  font-family: 'JetBrains Mono', monospace;
}
.badge-success { background: rgba(52,211,153,0.15); color: #34D399; border: 1px solid rgba(52,211,153,0.3); }
.badge-violet { background: var(--violet-dim); color: var(--violet-light); border: 1px solid rgba(108,99,255,0.3); }
.badge-teal { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); }
.badge-amber { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.badge-rose { background: var(--rose-dim); color: var(--rose); border: 1px solid rgba(236,72,153,0.3); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.status-active { background: rgba(52,211,153,0.1); color: #34D399; border: 1px solid rgba(52,211,153,0.25); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.pulse-dot.red { background: var(--rose); }

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

.tag {
  display: inline-flex; padding: 3px 10px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 500;
}
.tag-sector { background: var(--violet-dim); color: var(--violet-light); }
.tag-stage { background: var(--teal-dim); color: var(--teal); }
.tag-geo { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   KPI GRID
═══════════════════════════════════════════════════════════ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s;
}
.kpi-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.kpi-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-violet { background: var(--violet-dim); color: var(--violet); }
.kpi-teal { background: var(--teal-dim); color: var(--teal); }
.kpi-amber { background: var(--amber-dim); color: var(--amber); }
.kpi-rose { background: var(--rose-dim); color: var(--rose); }

.kpi-val { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; }
.kpi-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.kpi-trend {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
}
.kpi-trend svg { width: 12px; height: 12px; }
.kpi-trend.up { color: var(--teal); }
.kpi-trend.warn { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════════════════ */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.three-col-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.span-2 { grid-column: span 2; }

.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.section-title-row h3 { font-size: 16px; font-weight: 700; }

.header-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: transparent;
  font-size: 12px; color: var(--text-muted); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--violet); color: var(--violet-light); background: var(--violet-dim); }

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elevated); }

.match-score-bar {
  display: flex; align-items: center; gap: 8px;
}
.msb-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.msb-fill { height: 100%; border-radius: 2px; background: var(--grad-brand); }
.msb-val { font-size: 12px; font-weight: 600; color: var(--teal); white-space: nowrap; }

.why-matched { font-size: 12px; color: var(--text-secondary); max-width: 200px; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   FOUNDER DASHBOARD SPECIFICS
═══════════════════════════════════════════════════════════ */
.deck-status-card { }

.deck-preview-block { display: flex; gap: 20px; margin-bottom: 16px; }

.deck-thumb {
  width: 100px; height: 80px; flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.deck-thumb-inner { padding: 8px; height: 100%; }
.deck-slide-preview { height: 100%; display: flex; flex-direction: column; gap: 4px; }
.slide-line { height: 4px; border-radius: 2px; background: var(--border-strong); }
.slide-title { width: 70%; }
.slide-sub { width: 50%; }
.slide-chart-mini { display: flex; align-items: flex-end; gap: 3px; flex: 1; padding-top: 4px; }
.bar-mini { flex: 1; background: var(--violet); border-radius: 1px; opacity: 0.7; }

.deck-meta { flex: 1; }
.deck-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.deck-info-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.deck-info-row svg { width: 12px; height: 12px; }

.confidence-section { margin-top: 12px; }
.conf-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.conf-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 4px; }
.conf-bar { height: 100%; border-radius: 3px; background: var(--grad-brand); }
.conf-score { font-size: 13px; font-weight: 700; color: var(--teal); }

.deck-one-deck-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--text-secondary);
}
.deck-one-deck-notice svg { width: 14px; height: 14px; color: var(--amber); flex-shrink: 0; margin-top: 1px; }

/* Activity List */
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.activity-item:hover { background: var(--bg-elevated); }
.activity-icon {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 14px; height: 14px; }
.activity-interest .activity-icon { background: var(--violet-dim); color: var(--violet); }
.activity-meeting .activity-icon { background: var(--teal-dim); color: var(--teal); }

.activity-body { flex: 1; }
.activity-title { font-size: 13px; margin-bottom: 2px; }
.activity-sub { font-size: 12px; color: var(--text-muted); }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

/* ═══════════════════════════════════════════════════════════
   DECK UPLOAD
═══════════════════════════════════════════════════════════ */
.upload-flow { }

.step-indicator {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; gap: 0;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  transition: all 0.3s;
}
.step.active .step-num { border-color: var(--violet); color: var(--violet); background: var(--violet-dim); }
.step.completed .step-num { border-color: var(--teal); background: var(--teal); color: white; }
.step-lbl { font-size: 11px; color: var(--text-muted); }
.step.active .step-lbl { color: var(--violet); }
.step.completed .step-lbl { color: var(--teal); }
.step-line { width: 60px; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 20px; }
.step-line.completed { background: var(--teal); }

.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}
.upload-zone:hover { border-color: var(--violet); }
.upload-icon { margin-bottom: 12px; }
.upload-icon svg { width: 40px; height: 40px; color: var(--violet); }
.upload-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.upload-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.upload-file-shown {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 10px 16px;
  background: var(--teal-dim); border-radius: var(--radius-md);
  font-size: 13px; color: var(--teal);
}
.upload-file-shown svg { width: 14px; height: 14px; }
.file-size { color: var(--text-muted); font-size: 12px; }
.check-green { color: var(--teal) !important; }

.confidence-analyzer { }
.conf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.conf-header h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.conf-header h4 svg { width: 14px; height: 14px; color: var(--violet); }
.conf-score-big { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--teal); }
.conf-score-big span { font-size: 14px; color: var(--text-muted); }

.conf-gauge-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.conf-gauge { width: 200px; height: 110px; }
.gauge-fill { transition: stroke-dashoffset 1s ease; }
.gauge-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--teal); }

.conf-breakdown { display: flex; flex-direction: column; gap: 8px; }
.conf-item { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.conf-item span:first-child { width: 160px; color: var(--text-secondary); flex-shrink: 0; }
.conf-mini-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.conf-mini-bar div { height: 100%; border-radius: 2px; background: var(--grad-brand); }
.conf-pct { width: 36px; text-align: right; font-weight: 600; color: var(--teal); font-family: 'JetBrains Mono', monospace; }
.conf-pct.warn { color: var(--amber); }

.submission-panel { }
.panel-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.panel-section-title svg { width: 14px; height: 14px; }
.mt-lg { margin-top: 24px; }

.extracted-fields { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.field-row:last-child { border-bottom: none; }
.field-lbl { font-size: 12px; color: var(--text-muted); }
.field-val { font-size: 13px; font-weight: 500; }
.text-teal { color: var(--teal); }
.text-violet { color: var(--violet-light); }
.text-amber { color: var(--amber); }

.improvement-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.improve-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-md);
  font-size: 13px;
}
.improve-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.improve-warn { background: var(--amber-dim); color: var(--text-secondary); }
.improve-warn svg { color: var(--amber); }
.improve-info { background: var(--violet-dim); color: var(--text-secondary); }
.improve-info svg { color: var(--violet); }

.submit-confirm-box { margin-bottom: 16px; padding: 14px; background: var(--bg-elevated); border-radius: var(--radius-md); }
.submit-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.submit-note svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════
   SUGGESTIONS
═══════════════════════════════════════════════════════════ */
.suggestions-layout { display: flex; flex-direction: column; gap: 20px; }

.score-overview-card { padding: 24px; }
.score-radials { display: flex; justify-content: space-around; align-items: center; }
.radial-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.radial-svg { width: 80px; height: 80px; }
.radial-num { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; fill: var(--text-primary); }
.radial-lbl { font-size: 12px; color: var(--text-muted); }

.suggestions-list { display: flex; flex-direction: column; gap: 16px; }
.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border-left: 4px solid transparent;
}
.suggestion-card.priority-high { border-left-color: var(--rose); }
.suggestion-card.priority-medium { border-left-color: var(--amber); }
.suggestion-card.priority-low { border-left-color: var(--teal); }

.sug-priority { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; }
.priority-dot.high { background: var(--rose); }
.priority-dot.medium { background: var(--amber); }
.priority-dot.low { background: var(--teal); }

.sug-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sug-header svg { width: 18px; height: 18px; color: var(--violet); }
.sug-header h4 { font-size: 15px; font-weight: 700; }
.sug-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.sug-example { font-size: 13px; color: var(--text-muted); background: var(--bg-elevated); padding: 10px 14px; border-radius: var(--radius-md); margin-bottom: 12px; line-height: 1.5; }
.sug-impact { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--teal); font-weight: 500; }
.sug-impact svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   ADMIN DECK CARDS
═══════════════════════════════════════════════════════════ */
.deck-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.deck-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.deck-admin-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); opacity: 0; transition: opacity 0.3s;
}
.deck-admin-card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: var(--shadow-violet); }
.deck-admin-card:hover::after { opacity: 1; }

.dac-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.dac-logo { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--grad-violet); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: white; }
.dac-company { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dac-sector { font-size: 12px; color: var(--text-muted); }

.dac-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.dac-metric { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 8px 10px; }
.dac-metric-val { font-size: 14px; font-weight: 700; }
.dac-metric-lbl { font-size: 11px; color: var(--text-muted); }

.dac-score-row { display: flex; align-items: center; justify-content: space-between; }
.dac-score-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; margin: 0 10px; }
.dac-score-fill { height: 100%; border-radius: 2px; background: var(--grad-brand); }

/* ═══════════════════════════════════════════════════════════
   ADMIN COMPANY DETAIL
═══════════════════════════════════════════════════════════ */
.company-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 24px;
  background-image: radial-gradient(ellipse at 80% 50%, rgba(108,99,255,0.08) 0%, transparent 60%);
}
.company-hero-left { display: flex; align-items: flex-start; gap: 20px; flex: 1; }
.company-logo-big {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--grad-violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white; flex-shrink: 0;
}
.inv-logo { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.company-hero-info h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.company-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.company-tagline { font-size: 14px; color: var(--text-secondary); font-style: italic; line-height: 1.5; }

.company-hero-right { display: flex; gap: 24px; flex-shrink: 0; }
.hero-metric { text-align: center; }
.hm-val { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.hm-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.eval-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.eval-metric { display: flex; align-items: center; gap: 12px; }
.eval-label { width: 180px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.eval-bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; }
.eval-bar { height: 100%; border-radius: 3px; }
.eval-score { width: 50px; text-align: right; font-size: 13px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); }

.ai-summary-box {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: var(--violet-dim);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-md);
}
.ai-summary-icon { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.ai-summary-icon svg { width: 18px; height: 18px; }
.ai-summary-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.metrics-stack { display: flex; flex-direction: column; gap: 0; }
.metric-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-lbl { font-size: 12px; color: var(--text-muted); }
.metric-val { font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }

.mini-chart-label { font-size: 11px; color: var(--text-muted); margin-top: 16px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.mini-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.mini-bar-chart .mb { flex: 1; border-radius: 2px 2px 0 0; background: var(--grad-brand); opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   ADMIN MATCH TABLE
═══════════════════════════════════════════════════════════ */
.investor-checkbox { width: 16px; height: 16px; accent-color: var(--violet); cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   DISPATCH
═══════════════════════════════════════════════════════════ */
.email-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  font-size: 13px;
}
.email-field { display: flex; gap: 8px; margin-bottom: 6px; color: var(--text-secondary); }
.email-field span { color: var(--text-muted); width: 60px; flex-shrink: 0; }
.email-divider { height: 1px; background: var(--border); margin: 12px 0; }
.email-body { color: var(--text-secondary); line-height: 1.7; }
.email-body p { margin-bottom: 10px; }
.email-body ul { padding-left: 20px; margin-bottom: 10px; }
.email-body li { margin-bottom: 4px; }

.dispatch-actions { display: flex; gap: 10px; }

.selected-investors-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.sel-inv-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-elevated); border-radius: var(--radius-md); }
.sel-inv-name { font-size: 13px; font-weight: 600; }
.sel-inv-fund { font-size: 12px; color: var(--text-muted); }

.dispatch-summary { border-top: 1px solid var(--border); padding-top: 16px; }
.ds-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.ds-row span { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   INVESTOR PITCH CARDS
═══════════════════════════════════════════════════════════ */
.investor-pitch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pitch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.pitch-card:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: 0 4px 24px rgba(245,158,11,0.15); }
.pitch-card.new-pitch { border-top: 3px solid var(--violet); }

.pc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pc-logo { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--grad-violet); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: white; }
.pc-company { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pc-sector { font-size: 12px; color: var(--text-muted); }

.pc-match { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pc-match-label { font-size: 12px; color: var(--text-muted); }
.pc-match-val { font-size: 14px; font-weight: 700; color: var(--violet-light); font-family: 'JetBrains Mono', monospace; }

.pc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pc-metric { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 8px 10px; }
.pc-metric-val { font-size: 13px; font-weight: 700; }
.pc-metric-lbl { font-size: 11px; color: var(--text-muted); }

.pc-actions { display: flex; gap: 8px; }
.pc-actions button { flex: 1; padding: 8px; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   INVESTOR REPORT — THESIS GRID
═══════════════════════════════════════════════════════════ */
.thesis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.thesis-cell {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}
.match-strong { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.25); }
.match-medium { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.match-weak { background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.2); }

.tc-icon { margin-bottom: 8px; }
.tc-icon svg { width: 20px; height: 20px; }
.match-strong .tc-icon svg { color: var(--teal); }
.match-medium .tc-icon svg { color: var(--amber); }
.match-weak .tc-icon svg { color: var(--rose); }

.tc-label { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.tc-score { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.match-strong .tc-score { color: var(--teal); }
.match-medium .tc-score { color: var(--amber); }
.match-weak .tc-score { color: var(--rose); }
.tc-note { font-size: 11px; color: var(--text-muted); }

/* Risk Grid */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.risk-item { padding: 12px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; }
.risk-low { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); }
.risk-medium { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.risk-high { background: rgba(236,72,153,0.08); border: 1px solid rgba(236,72,153,0.2); }
.risk-label { font-size: 12px; color: var(--text-secondary); }
.risk-level { font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.risk-low .risk-level { color: var(--teal); }
.risk-medium .risk-level { color: var(--amber); }
.risk-high .risk-level { color: var(--rose); }

.overall-risk { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.risk-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.risk-badge.medium { background: var(--amber-dim); color: var(--amber); }

/* Radar Legend */
.radar-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; }
.rl-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.rl-dot { width: 10px; height: 10px; border-radius: 50%; }
.rl-dot.violet { background: var(--violet); }
.rl-dot.teal { background: var(--teal); }

/* ═══════════════════════════════════════════════════════════
   AI CHAT
═══════════════════════════════════════════════════════════ */
.ai-chat-card { }

.chat-messages {
  min-height: 200px; max-height: 320px;
  overflow-y: auto; padding: 8px 0;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 16px;
}

.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg.user-msg { flex-direction: row-reverse; }

.chat-avatar {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; font-weight: 700;
}
.ai-avatar { background: var(--grad-violet); color: white; }
.ai-avatar svg { width: 14px; height: 14px; }
.user-avatar-chat { background: linear-gradient(135deg, #F59E0B, #EC4899); color: white; font-size: 11px; }

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.6;
}
.ai-msg .chat-bubble { background: var(--bg-elevated); color: var(--text-secondary); border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); }
.user-msg .chat-bubble { background: var(--violet-dim); color: var(--text-primary); border-radius: var(--radius-md) 4px var(--radius-md) var(--radius-md); border: 1px solid rgba(108,99,255,0.2); }

.chat-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-primary);
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--border-focus); outline: none; }
.chat-input-row .btn-primary { padding: 10px 14px; }
.chat-input-row .btn-primary svg { width: 16px; height: 16px; }

.chat-suggestions { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-sug {
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: transparent;
  font-size: 12px; color: var(--text-muted); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.chat-sug:hover { border-color: var(--violet); color: var(--violet-light); background: var(--violet-dim); }

/* ═══════════════════════════════════════════════════════════
   MEETING SCREEN
═══════════════════════════════════════════════════════════ */
.meeting-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.meeting-main { display: flex; flex-direction: column; gap: 20px; }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.founder-tile { border-color: rgba(108,99,255,0.3); }
.self-tile { border-color: rgba(0,212,170,0.3); }

.video-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.video-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
}
.video-avatar.inv { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.video-name { font-size: 13px; color: var(--text-secondary); }

.video-controls-overlay {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.video-controls-overlay svg { width: 16px; height: 16px; color: var(--teal); }

.live-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(236,72,153,0.15); border: 1px solid rgba(236,72,153,0.3);
  font-size: 12px; font-weight: 700; color: var(--rose);
  font-family: 'JetBrains Mono', monospace;
}

.live-confidence-card { }
.live-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rose); font-family: 'JetBrains Mono', monospace; }

.live-conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.live-conf-item { }
.lci-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.lci-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 4px; }
.lci-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }
.lci-violet { background: var(--grad-violet); }
.lci-teal { background: var(--grad-teal); }
.lci-amber { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.lci-rose { background: linear-gradient(90deg, #EC4899, #F472B6); }
.lci-val { font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); }

.live-notes-area { border-top: 1px solid var(--border); padding-top: 16px; }
.live-notes-area h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.live-notes-area h4 svg { width: 14px; height: 14px; color: var(--violet); }

.live-notes-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.live-note { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); font-size: 12px; }
.live-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.live-note.verified { background: rgba(52,211,153,0.08); color: var(--text-secondary); }
.live-note.verified svg { color: var(--teal); }
.live-note.pending { background: var(--amber-dim); color: var(--text-secondary); }
.live-note.pending svg { color: var(--amber); }
.live-note.flagged { background: var(--rose-dim); color: var(--text-secondary); }
.live-note.flagged svg { color: var(--rose); }

.live-note-input-row { display: flex; gap: 8px; }
.live-note-input-row .btn-outline { padding: 8px 14px; font-size: 12px; white-space: nowrap; }

.meeting-sidebar-panel { display: flex; flex-direction: column; gap: 16px; }
.meeting-chat-card { flex: 1; }
.meeting-chat { max-height: 400px; }
.mt-md { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-wide { max-width: 760px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.modal-header h3 svg { width: 18px; height: 18px; color: var(--violet); }
.modal-header button { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; }
.modal-header button svg { width: 18px; height: 18px; }

.modal-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }

.modal-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 0.2s;
}
.check-item:hover { border-color: var(--violet); }
.check-item input { width: 16px; height: 16px; accent-color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.check-item div { display: flex; flex-direction: column; gap: 2px; }
.check-item strong { font-size: 13px; }
.check-item span { font-size: 12px; color: var(--text-muted); }

.modal-note-input { margin-bottom: 20px; }
.modal-note-input label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-note-input textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.modal-note-input textarea:focus { border-color: var(--border-focus); outline: none; }

.meeting-form { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.meeting-form .form-group { margin-bottom: 14px; }
.meeting-form textarea { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--text-primary); font-family: 'DM Sans', sans-serif; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Post-Call Modal */
.post-call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.post-call-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.post-conf-list { display: flex; flex-direction: column; gap: 8px; }
.pc-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pc-item span:first-child { width: 120px; color: var(--text-muted); flex-shrink: 0; }
.pc-bar-wrap { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.pc-bar { height: 100%; border-radius: 2px; }
.pc-item strong { width: 36px; text-align: right; font-family: 'JetBrains Mono', monospace; }
.pc-delta { font-size: 11px; font-weight: 600; }

.verified-list { display: flex; flex-direction: column; gap: 6px; }
.vl-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; padding: 8px 10px; border-radius: var(--radius-sm); }
.vl-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.vl-item.verified { background: rgba(52,211,153,0.08); color: var(--text-secondary); }
.vl-item.verified svg { color: var(--teal); }
.vl-item.flagged { background: var(--amber-dim); color: var(--text-secondary); }
.vl-item.flagged svg { color: var(--amber); }
.vl-item.pending { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.vl-item.pending svg { color: var(--text-muted); }

.ai-recommendation-box {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.ai-rec-icon { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.ai-rec-icon svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-left: 3px solid var(--teal); }
.toast.toast-info { border-left: 3px solid var(--violet); }
.toast.toast-warn { border-left: 3px solid var(--amber); }

/* ═══════════════════════════════════════════════════════════
   NOTIF INLINE
═══════════════════════════════════════════════════════════ */
.notif-inline {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--amber);
  cursor: pointer; transition: all 0.2s; position: relative;
}
.notif-inline svg { width: 16px; height: 16px; }
.notif-badge-inline {
  background: var(--rose); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   THESIS CHIP
═══════════════════════════════════════════════════════════ */
.thesis-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-full);
  font-size: 12px; color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
}
.thesis-chip svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   INVESTOR HERO
═══════════════════════════════════════════════════════════ */
.investor-hero {
  background-image: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
═══════════════════════════════════════════════════════════ */
[data-theme="light"] .sidebar { background: #1A1F35; }
[data-theme="light"] .nav-item { color: rgba(255,255,255,0.6); }
[data-theme="light"] .nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
[data-theme="light"] .nav-item.active { background: var(--violet-dim); color: var(--violet-light); }
[data-theme="light"] .sidebar-admin .nav-item.active { background: var(--teal-dim); color: var(--teal); }
[data-theme="light"] .sidebar-investor .nav-item.active { background: var(--amber-dim); color: var(--amber); }
[data-theme="light"] .sidebar-bottom { border-top-color: rgba(255,255,255,0.1); }
[data-theme="light"] .sidebar-logo { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="light"] .user-name-sm { color: white; }
[data-theme="light"] .user-role-sm { color: rgba(255,255,255,0.5); }
[data-theme="light"] .btn-ghost-sm { color: rgba(255,255,255,0.5); }
[data-theme="light"] .btn-ghost-sm:hover { color: white; }
[data-theme="light"] .landing-bg { background: #F4F6FB; }
[data-theme="light"] .grid-overlay { background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); }
[data-theme="light"] .orb { opacity: 0.2; }
[data-theme="light"] .auth-bg { background: #F4F6FB; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 1; }
  .thesis-grid { grid-template-columns: repeat(2, 1fr); }
  .deck-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-pitch-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
  .two-col-grid { grid-template-columns: 1fr; }
  .portal-cards { grid-template-columns: 1fr; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .company-hero-card { flex-direction: column; }
  .meeting-layout { grid-template-columns: 1fr; }
  .post-call-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content { padding: 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .deck-cards-grid { grid-template-columns: 1fr; }
  .investor-pitch-cards { grid-template-columns: 1fr; }
  .landing-title { font-size: 56px; }
  .landing-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}