@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #04060a;
  --bg2: #080b12;
  --panel: rgba(13, 17, 26, 0.78);
  --panel-solid: #0d121c;
  --panel2: rgba(18, 24, 38, 0.85);
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(91, 140, 255, 0.35);
  --border-glow: rgba(56, 189, 248, 0.25);
  --text: #f8fafc;
  --muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --green: #10b981;
  --red: #f43f5e;
  --amber: #f59e0b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --glow: 0 0 0 1px var(--border), 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.15);
  --sidebar-w: 240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh; position: relative; overflow-x: hidden;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* Futuristic Ambient Nebula Mesh */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
body::before {
  width: 680px; height: 680px; top: -240px; left: -180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.08), transparent 70%);
  animation: float1 24s ease-in-out infinite alternate;
}
body::after {
  width: 620px; height: 620px; bottom: -220px; right: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), rgba(244, 63, 94, 0.06), transparent 70%);
  animation: float2 28s ease-in-out infinite alternate;
}
@keyframes float1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(90px,70px) scale(1.18); } }
@keyframes float2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-80px,-60px) scale(1.12); } }

/* Custom Sleek Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(8, 11, 18, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91, 140, 255, 0.5); }

h1, h2, h3, h4, .brand-name { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit; background: rgba(9, 13, 22, 0.7); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; width: 100%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent-cyan); background: rgba(13, 19, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18), 0 0 12px rgba(6, 182, 212, 0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.hidden { display: none !important; }

/* Login */
#login-view { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; position: relative; }
.login-card {
  background: var(--panel); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.08);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent), var(--accent-violet));
}
.login-card .logo {
  font-size: 34px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 8px;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.google-btn {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text); display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14.5px; transition: all 0.2s ease;
}
.google-btn:hover {
  border-color: rgba(91, 140, 255, 0.5); background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Layout */
#app-view { display: flex; min-height: 100vh; width: 100%; position: relative; }
.mobile-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: rgba(10, 14, 23, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 90; padding: 0 16px;
  align-items: center; justify-content: space-between;
}
.mobile-topbar .brand-name {
  font-size: 20px; font-weight: 800; background: linear-gradient(90deg, var(--accent-cyan), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hamburger-btn {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}

aside {
  width: var(--sidebar-w); background: var(--panel); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
aside .logo {
  font-size: 23px; font-weight: 800; letter-spacing: -0.5px; padding: 4px 12px 20px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
aside button.nav {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  text-align: left; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  transition: all 0.18s ease; position: relative; display: flex; align-items: center; gap: 10px;
}
aside button.nav:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); transform: translateX(2px); }
aside button.nav.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(6, 182, 212, 0.08));
  color: #fff; border-color: rgba(59, 130, 246, 0.3); font-weight: 700;
}
aside button.nav.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--accent-cyan), var(--accent)); box-shadow: 0 0 12px var(--accent-cyan);
}
aside .spacer { flex: 1; }
.nav-divider { height: 1px; margin: 10px 8px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

aside button.nav.expo-nav {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.2); color: #fde68a;
}
aside button.nav.expo-nav:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(6, 182, 212, 0.12));
  border-color: rgba(245, 158, 11, 0.4); color: #fff;
}
aside button.nav.expo-nav.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(6, 182, 212, 0.15));
  border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 16px rgba(245, 158, 11, 0.15); color: #fff;
}

main {
  margin-left: var(--sidebar-w); flex: 1; min-width: 0;
  width: calc(100% - var(--sidebar-w)); padding: 32px 40px;
  max-width: 1600px; box-sizing: border-box; position: relative;
}
main > section { width: 100%; animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeInView { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
h2 { font-size: 24px; font-weight: 800; margin-bottom: 22px; color: #f8fafc; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #f1f5f9; }

/* Components */
.btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.btn.secondary:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.09); color: #fff; }
.btn.danger { background: linear-gradient(135deg, #e11d48, #9f1239); box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3); }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.card {
  background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--glow); transition: border-color 0.2s ease, box-shadow 0.2s ease; position: relative; width: 100%;
}
.card:hover { border-color: rgba(148, 163, 184, 0.22); }
.grid { display: grid; gap: 16px; width: 100%; }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stat {
  background: var(--panel); backdrop-filter: blur(20px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--glow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden;
}
.stat:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; font-family: 'Sora', sans-serif; color: #f8fafc; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 12.5px; margin-top: 6px; font-weight: 600; letter-spacing: 0.2px; }

/* ExpoHunt stat card glow variants */
.stat.expo-glow-blue { border-color: rgba(59, 130, 246, 0.25); }
.stat.expo-glow-blue:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: var(--glow), 0 0 24px rgba(59, 130, 246, 0.18); }
.stat.expo-glow-purple { border-color: rgba(139, 92, 246, 0.25); }
.stat.expo-glow-purple:hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: var(--glow), 0 0 24px rgba(139, 92, 246, 0.18); }
.stat.expo-glow-green { border-color: rgba(16, 185, 129, 0.25); }
.stat.expo-glow-green:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: var(--glow), 0 0 24px rgba(16, 185, 129, 0.18); }
.stat.expo-glow-teal { border-color: rgba(6, 182, 212, 0.25); }
.stat.expo-glow-teal:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: var(--glow), 0 0 24px rgba(6, 182, 212, 0.18); }
.stat.expo-glow-amber { border-color: rgba(245, 158, 11, 0.25); }
.stat.expo-glow-amber:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: var(--glow), 0 0 24px rgba(245, 158, 11, 0.18); }
.stat.expo-glow-red { border-color: rgba(244, 63, 94, 0.25); }
.stat.expo-glow-red:hover { border-color: rgba(244, 63, 94, 0.5); box-shadow: var(--glow), 0 0 24px rgba(244, 63, 94, 0.18); }

.table-scroll { width: 100%; overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: rgba(6, 9, 15, 0.4); }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th {
  color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; background: rgba(13, 18, 28, 0.7); white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.07); vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, 0.025); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2px; border: 1px solid transparent; white-space: nowrap;
}
.badge.found, .badge.ready, .badge.discovered { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border-color: rgba(59, 130, 246, 0.25); }
.badge.emailed, .badge.sending, .badge.active, .badge.contacted { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.25); }
.badge.replied, .badge.question { background: rgba(245, 158, 11, 0.14); color: #fde68a; border-color: rgba(245, 158, 11, 0.3); }
.badge.interested, .badge.meeting_requested, .badge.email_found { background: rgba(6, 182, 212, 0.14); color: #67e8f9; border-color: rgba(6, 182, 212, 0.3); }
.badge.meeting_scheduled, .badge.confirmed, .badge.completed, .badge.meeting_set { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
.badge.not_interested, .badge.bounced, .badge.failed, .badge.cancelled, .badge.opted_out { background: rgba(244, 63, 94, 0.14); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.badge.no_email, .badge.researching, .badge.proposed, .badge.draft { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--border); }
.badge.verified { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.35); font-weight: 700; }
.badge.risky { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.badge.unverified { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); border-color: var(--border); }
.badge.pe { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.3); }
.badge.developer { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.badge.tier { background: rgba(245, 158, 11, 0.12); color: #fde68a; border-color: rgba(245, 158, 11, 0.25); }

.muted { color: var(--muted); font-size: 12.5px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; }
.activity-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.activity-item:last-child { border-bottom: none; }
.activity-item .muted { margin-top: 3px; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; font-size: 13.5px; white-space: pre-wrap; backdrop-filter: blur(10px); }
.msg.outbound { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.25); }
.msg.inbound { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.25); }
.msg .hdr { font-size: 11px; color: var(--muted); margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }

#toast {
  position: fixed; bottom: 24px; right: 24px; background: rgba(15, 20, 32, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border);
  border-left: 4px solid var(--accent-cyan); padding: 14px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; max-width: 400px; z-index: 1000; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: slideInToast 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast.err { border-left-color: var(--red); }
@keyframes slideInToast { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Setup checklist */
.setup-card { border-color: rgba(245, 158, 11, 0.35); box-shadow: var(--glow), 0 0 35px rgba(245, 158, 11, 0.08); }
.check-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.check-row:last-of-type { border-bottom: none; }
.check-icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.35); }
.check-row.ok .check-icon { background: rgba(16, 185, 129, 0.15); color: var(--green); border-color: rgba(16, 185, 129, 0.35); }
.check-body { flex: 1; min-width: 0; }
.check-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.check-row.ok .check-label { color: var(--muted); }
.check-blocks { font-size: 12px; color: var(--amber); margin-top: 4px; font-weight: 500; }
a.btn { text-decoration: none; display: inline-block; }

/* API key manager */
.key-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.key-row:last-child { border-bottom: none; }
.key-row .key-label { width: 110px; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.key-row .key-status { width: 180px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.key-row .key-status.set { color: var(--green); }
.key-row input { flex: 1; min-width: 200px; font-family: 'JetBrains Mono', monospace; }
.provider-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.provider-dot.gemini { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.provider-dot.claude { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.provider-dot.openai { background: #34d399; box-shadow: 0 0 8px #34d399; }
.provider-dot.deepseek { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.provider-dot.firecrawl { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.provider-dot.apollo { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.provider-dot.hunter { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }

/* ======================== EXPOHUNT ======================== */

.expo-header {
  margin-bottom: 24px;
}
.expo-header h2 {
  margin-bottom: 4px;
  background: linear-gradient(90deg, #f59e0b, #06b6d4, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 26px; font-weight: 800;
}
.expo-subtitle {
  color: var(--muted); font-size: 13.5px; font-weight: 500;
}

/* ExpoHunt sub-tabs */
.expo-tabs {
  display: flex; gap: 6px; margin: 20px 0; padding: 6px;
  background: rgba(9, 13, 22, 0.7); border: 1px solid var(--border); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.expo-tabs::-webkit-scrollbar { display: none; }
.expo-tab {
  background: transparent; border: 1px solid transparent; color: var(--muted); padding: 9px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .18s ease;
}
.expo-tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.expo-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(6, 182, 212, 0.12));
  color: #fff;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Exhibition cards grid */
.expo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; width: 100%;
}
.expo-card {
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; justify-content: space-between;
}
.expo-card:hover {
  transform: translateY(-2px); border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.08);
}
.expo-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.expo-card-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.35; color: #f8fafc;
}
.expo-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.expo-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.expo-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--accent-cyan); text-decoration: none; font-weight: 600;
}
.expo-link:hover { text-decoration: underline; }
.expo-card-footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px;
}

/* Compliance */
.compliance-header {
  display: flex; align-items: center; gap: 16px;
}
.compliance-icon {
  font-size: 32px; width: 56px; height: 56px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 14px; flex-shrink: 0;
}

/* Priority badges */
.badge-high { background: rgba(244, 63, 94, 0.16); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-medium { background: rgba(245, 158, 11, 0.16); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-low { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }

/* Status badges for scheduled / A-B */
.badge-scheduled { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-ab { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.35); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }

/* Bulk action bar */
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bulk-bar span { font-size: 0.85rem; font-weight: 700; color: #93c5fd; }
.bulk-bar button { font-size: 0.78rem; padding: 5px 12px; }

/* Analytics panel */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.analytics-card { background: var(--panel2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.analytics-card h4 { margin: 0 0 12px; font-size: 0.95rem; color: #f8fafc; }

/* Funnel bars */
.funnel-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.82rem; }
.funnel-bar-wrap .label { width: 100px; text-align: right; color: var(--muted); font-weight: 600; }
.funnel-bar-wrap .bar { flex: 1; height: 22px; background: rgba(9, 13, 22, 0.6); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.funnel-bar-wrap .bar .fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius: 5px; transition: width .3s ease; }
.funnel-bar-wrap .count { width: 44px; font-weight: 700; color: #f8fafc; }

/* Campaign comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cmp-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 700; }
.cmp-table td { padding: 8px 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.07); }

/* A/B test results */
.ab-result { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ab-variant { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(9, 13, 22, 0.5); text-align: center; }
.ab-variant.winner { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.08); box-shadow: 0 0 15px rgba(16, 185, 129, 0.1); }
.ab-variant .pct { font-size: 1.4rem; font-weight: 800; color: #34d399; font-family: 'Sora', sans-serif; }

/* Timeline chart */
.timeline-bar { display: inline-block; min-width: 6px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #38bdf8, #818cf8); margin-right: 3px; vertical-align: bottom; }

/* Inline editing */
.inline-edit input, .inline-edit select { font-size: 0.8rem; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; width: 100%; box-sizing: border-box; }
.inline-edit .save-btn { background: #10b981; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 0.75rem; font-weight: 600; }
.inline-edit .cancel-btn { background: #f43f5e; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 0.75rem; font-weight: 600; }

/* Exhibitor checkbox */
.ex-check { width: 16px; height: 16px; cursor: pointer; accent-color: #3b82f6; }

/* Search inputs in filter rows */
.expo-search { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; width: 200px; background: rgba(9, 13, 22, 0.7); color: var(--text); }

/* ======================== PE & RE PIPELINE ENHANCEMENTS ======================== */

/* Email Verification Badges */
.badge.verified { background: rgba(47, 224, 141, 0.16); color: var(--green); border-color: rgba(47, 224, 141, 0.35); font-weight: 700; }
.badge.risky { background: rgba(255, 199, 95, 0.16); color: var(--amber); border-color: rgba(255, 199, 95, 0.35); }
.badge.unverified { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--border); }

/* Category Badges */
.badge.pe { background: rgba(162, 107, 255, 0.15); color: #c4a8ff; border-color: rgba(162, 107, 255, 0.3); }
.badge.developer { background: rgba(91, 140, 255, 0.15); color: #8ab0ff; border-color: rgba(91, 140, 255, 0.3); }
.badge.lp { background: rgba(34, 211, 197, 0.15); color: var(--accent3); border-color: rgba(34, 211, 197, 0.3); }
.badge.tier { background: rgba(255, 199, 95, 0.12); color: var(--amber); border-color: rgba(255, 199, 95, 0.25); font-size: 10.5px; }

/* Provider Dots */
.provider-dot.apollo { background: #ff9800; box-shadow: 0 0 6px #ff9800; }
.provider-dot.hunter { background: #e91e63; box-shadow: 0 0 6px #e91e63; }

/* Portfolios Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.portfolio-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s, border-color .2s, box-shadow .2s;
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(91, 140, 255, 0.1);
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.portfolio-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.portfolio-asset-type {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.portfolio-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  background: rgba(10, 13, 22, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(120, 140, 200, 0.1);
}
.metric-box .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent3);
}
.metric-box .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.portfolio-pitch {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}
.portfolio-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-box {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 620px;
  box-shadow: var(--glow), 0 20px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sequence Step Cards */
.sequence-step-card {
  background: rgba(10, 13, 22, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.sequence-step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.sequence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* User Identity Pill in Sidebar */
.user-sidebar-card {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.user-email-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}
.role-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}
.role-pill.admin {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.role-pill.member {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Mailbox & SMTP Connection Card */
.mail-config-card {
  background: linear-gradient(135deg, rgba(18, 24, 42, 0.8), rgba(12, 16, 28, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.mail-config-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}
.mail-badge-hostinger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.smtp-test-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.45;
}
.smtp-test-status.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.smtp-test-status.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

/* Staged Drafts Review Queue */
.draft-card {
  background: rgba(14, 19, 30, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: all 0.18s ease;
}
.draft-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.draft-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.draft-recipient {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.draft-subject {
  font-size: 13.5px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 8px;
}
.draft-preview {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  background: rgba(7, 10, 16, 0.5);
  padding: 12px 16px;
  border-radius: 9px;
  border-left: 3px solid var(--accent-cyan);
  margin-bottom: 14px;
  white-space: pre-wrap;
}

/* Calendar & Meeting Booking */
.calendar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.calendar-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: #fff;
}
.calendar-action-btn.google {
  border-color: rgba(66, 133, 244, 0.4);
  color: #93c5fd;
}
.calendar-action-btn.google:hover {
  background: rgba(66, 133, 244, 0.18);
}
.calendar-action-btn.ics {
  border-color: rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}
.calendar-action-btn.ics:hover {
  background: rgba(6, 182, 212, 0.18);
}

/* Team Management */
.team-table td {
  vertical-align: middle;
}
.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  margin-right: 10px;
}

/* ======================== RESPONSIVENESS & BREAKPOINTS ======================== */
@media (max-width: 960px) {
  .mobile-topbar {
    display: flex;
  }

  aside {
    transform: translateX(-100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    top: 0;
  }

  aside.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 95;
    display: block;
  }

  main {
    margin-left: 0;
    width: 100%;
    padding: 80px 18px 30px;
  }

  .expo-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .grid.cols4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .row > div, .row > input, .row > select, .row > button {
    width: 100% !important;
  }
}

@media (max-width: 540px) {
  .grid.cols4 {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    padding: 36px 20px;
  }
  
  main {
    padding: 76px 14px 24px;
  }
}

