
/* ═══════════════════════════════════════════════════════════════════════════════
   VYBE - Ecommerce Intelligence Sales Platform
   Design: Clean professional with EI brand palette
   Primary: #29B9D8 (EI Cyan), Sidebar: #E4F4F9, Accents: #1a1a2e
═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --ei-cyan:       #29B9D8;
  --ei-cyan-dark:  #1a9ab8;
  --ei-cyan-light: #E4F4F9;
  --ei-cyan-pale:  #F0FAFD;
  --sidebar-bg:    #D6EEF5;
  --sidebar-hover: #B8DEE9;
  --sidebar-active:#29B9D8;
  --white:         #ffffff;
  --body-bg:       #F7FBFD;
  --text-dark:     #1a1a2e;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --border:        #d1e9f0;
  --shadow:        rgba(41, 185, 216, 0.12);
  --success:       #38a169;
  --warning:       #d69e2e;
  --danger:        #e53e3e;
  --sidebar-w:     260px;
  --header-h:      64px;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--body-bg);
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* ─── SIDEBAR ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.sidebar-brand {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 20px 20px 8px;
}

nav { flex: 1; padding: 8px 12px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 3px;
  transition: all 0.18s ease;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--text-dark);
}

.nav-item.active {
  background: var(--ei-cyan);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--shadow);
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon { opacity: 1; filter: brightness(2); }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: var(--ei-cyan);
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.nav-item.active .nav-badge {
  background: rgba(255,255,255,0.3);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-light);
}

.sidebar-footer a {
  color: var(--ei-cyan-dark);
  text-decoration: none;
  font-weight: 600;
}

/* ─── MAIN AREA ─────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--white);
}

.topbar {
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  width: 44px;
  height: 44px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

/* ─── PAGES ─────────────────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block !important; opacity: 1 !important; }
#page-llm.active { display: flex !important; flex-direction: column; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── PAGE HEADER ────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 400;
}

/* ─── CARDS ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title span { color: var(--ei-cyan); }

/* ─── COMING SOON ────────────────────────────────────────────────────────────── */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}

.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.coming-soon h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.coming-soon p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 400px;
}

.tag-coming {
  display: inline-block;
  background: var(--ei-cyan-light);
  color: var(--ei-cyan-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--ei-cyan);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover { background: var(--ei-cyan-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--ei-cyan-light);
  color: var(--ei-cyan-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--sidebar-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--body-bg); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

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

/* ─── FORM ELEMENTS ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.15s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ei-cyan);
  box-shadow: 0 0 0 3px rgba(41,185,216,0.15);
}

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ─── CHAT UI ────────────────────────────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 120px);
  min-height: 400px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 0.2s ease;
}

@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ei-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  font-weight: 700;
  color: white;
}

.chat-message.user .chat-avatar {
  background: var(--text-dark);
}

.chat-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark);
}

.chat-message.user .chat-bubble {
  background: var(--ei-cyan);
  color: white;
  border-color: var(--ei-cyan);
}

.chat-bubble p { margin-bottom: 8px; }
.chat-bubble p:last-child { margin-bottom: 0; }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 42px;
}

.chat-input:focus { border-color: var(--ei-cyan); box-shadow: 0 0 0 3px rgba(41,185,216,0.12); }

/* ─── TYPING INDICATOR ───────────────────────────────────────────────────────── */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--ei-cyan);
  border-radius: 50%;
  animation: bounce 1.3s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* ─── FILE UPLOAD ZONE ───────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--body-bg);
  position: relative;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--ei-cyan);
  background: var(--ei-cyan-pale);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }

.upload-zone h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-light);
}

/* ─── ANALYSIS OUTPUT ────────────────────────────────────────────────────────── */
.analysis-output {
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  max-height: 500px;
  overflow-y: auto;
}

/* ─── TABLE ──────────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th {
  background: var(--ei-cyan-light);
  color: var(--ei-cyan-dark);
  font-weight: 700;
  padding: 6px 8px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: middle;
  font-size: 13px;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--body-bg); }

/* ─── BADGE ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-remove { background: #FEE2E2; color: #C53030; }
.badge-check  { background: #FEF9C3; color: #92400E; }
.badge-clean  { background: #D1FAE5; color: #065F46; }

/* ─── STAT CARDS ─────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ei-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 4px;
}

/* ─── LOADING SPINNER ────────────────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(41,185,216,0.2);
  border-top-color: var(--ei-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ─── PROGRESS ───────────────────────────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--ei-cyan-light);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: var(--ei-cyan);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── ALERT ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-info { background: var(--ei-cyan-pale); border: 1px solid var(--border); color: var(--ei-cyan-dark); }
.alert-success { background: #F0FFF4; border: 1px solid #9AE6B4; color: #276749; }
.alert-warning { background: #FFFBEB; border: 1px solid #F6D860; color: #744210; }
.alert-error { background: #FFF5F5; border: 1px solid #FEB2B2; color: #742A2A; }

/* ─── DIVIDER ────────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ─── GRID 2-COL ─────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── LINKEDIN POST PREVIEW ──────────────────────────────────────────────────── */
.li-post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.li-post-angle {
  display: inline-block;
  background: var(--ei-cyan-light);
  color: var(--ei-cyan-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.li-post-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.li-post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

/* ─── IMAGE PREVIEW ──────────────────────────────────────────────────────────── */
.img-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 10px;
  object-fit: cover;
}

/* ─── CONNECTED / DISCONNECTED ───────────────────────────────────────────────── */
.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.connection-pill.connected {
  background: #D1FAE5;
  color: #065F46;
}

.connection-pill.disconnected {
  background: #FEE2E2;
  color: #C53030;
}

/* ─── OBJECTIVES FIELDS ───────────────────────────────────────────────────────── */
.objective-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--ei-cyan-pale);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.objective-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.objective-num {
  width: 24px;
  height: 24px;
  background: var(--ei-cyan);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── DECK SLIDE PREVIEW ────────────────────────────────────────────────────── */
.deck-preview {
  aspect-ratio: 16/9;
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.deck-preview-inner {
  padding: 32px;
  color: white;
  width: 100%;
}

.deck-preview h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 700;
  color: var(--ei-cyan);
  margin-bottom: 8px;
}

.deck-preview p { font-size: clamp(11px, 1.5vw, 14px); opacity: 0.8; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 220px; }
  .grid-2 { grid-template-columns: 1fr; }
  .content-area { padding: 20px; }
}

/* ─── MODAL ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

/* Highlight CSV code in analysis */
pre.csv-block {
  background: #1a1a2e;
  color: #a8f0fb;
  padding: 16px;
  border-radius: 10px;
  font-size: 12px;
  overflow-x: auto;
  margin-top: 8px;
}






/* ─── COMPACT TABLE (Database) ──────────────────────────────────── */
#pa-table th  { padding: 5px 7px; font-size: 10px; }
#pa-table td  { padding: 4px 7px; font-size: 12px; vertical-align: middle; }
#pa-table .pdb-inline-input { min-width: 70px; font-size: 11px; padding: 2px 4px; }
#pa-table .pdb-stage-select  { font-size: 11px; padding: 2px 3px; }
#pa-table a   { font-size: 11px; }
#pa-table strong { font-size: 12px; }

/* ─── PROSPECTS DATABASE ─────────────────────────────────────────────────────── */
.pdb-inline-input {
  width: 100%;
  min-width: 80px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Barlow', sans-serif;
  background: transparent;
  color: var(--text-dark);
  transition: border-color 0.15s, background 0.15s;
}
.pdb-inline-input:hover { border-color: var(--border); background: var(--body-bg); }
.pdb-inline-input:focus { border-color: var(--ei-cyan); background: var(--white); outline: none; box-shadow: 0 0 0 2px rgba(41,185,216,0.15); }
.pdb-inline-input::placeholder { color: var(--text-light); font-style: italic; }

.pdb-stage-select {
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  width: 100%;
}

.pdb-filter-btn { transition: all 0.15s; }

/* ─── ACCOUNT AUDIT ─────────────────────────────────────────────────────────── */
.audit-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ei-cyan-dark);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

.audit-issue-num {
  padding: 10px 14px;
  background: var(--body-bg);
  border-left: 3px solid var(--ei-cyan);
  border-radius: 0 8px 8px 0;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
}

/* ─── INDEED JOB EXTRACTION ─────────────────────────────────────────────────── */
.ij-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.ij-card:hover { box-shadow: 0 4px 16px var(--shadow); }

.ij-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.ij-card-header.open { border-bottom-color: var(--border); }

.ij-card-header-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ij-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.ij-company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.ij-job-title {
  font-size: 11px;
  color: var(--text-light);
  font-family: monospace;
  margin-top: 2px;
}

.ij-card-header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  text-align: right;
}

.ij-location { font-size: 12px; color: var(--text-light); font-family: monospace; }
.ij-salary   { font-size: 12px; font-weight: 600; color: var(--text-dark); }

.ij-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ij-section-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: monospace;
  margin-bottom: 6px;
}

.ij-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ij-pain-item {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.55;
  display: flex;
  gap: 8px;
}

.ij-pain-dash {
  color: #BA7517;
  flex-shrink: 0;
  font-family: monospace;
}

.ij-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ij-meta-box {
  background: var(--body-bg);
  border-radius: 10px;
  padding: 9px 13px;
  flex: 1;
  min-width: 130px;
}

.ij-meta-box-label {
  font-size: 10px;
  color: var(--text-light);
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ij-meta-box-value {
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 3px;
  font-family: monospace;
}

.ij-outreach-box {
  background: #FAEEDA;
  border-radius: 10px;
  padding: 11px 14px;
  border: 1px solid #FAC775;
}

.ij-outreach-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #854F0B;
  font-family: monospace;
  margin-bottom: 5px;
}

.ij-outreach-text {
  font-size: 13px;
  color: #633806;
  line-height: 1.55;
}

.ij-links { display: flex; gap: 8px; flex-wrap: wrap; }

.ij-link {
  font-size: 11px;
  font-family: monospace;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--ei-cyan-dark);
  background: var(--ei-cyan-pale);
  text-decoration: none;
  transition: background 0.15s;
}

.ij-link:hover { background: var(--ei-cyan-light); }

.ij-stat-pill {
  font-size: 11px;
  font-family: monospace;
  padding: 4px 12px;
  border-radius: 20px;
}

.ij-chevron {
  font-size: 12px;
  color: var(--text-light);
  transition: transform 0.2s;
  user-select: none;
}

.ij-chevron.open { transform: rotate(180deg); }


/* ─── PARTNERSHIPS ────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 24px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--white);
  color: var(--ei-cyan-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-btn:hover:not(.active) { color: var(--text-dark); background: rgba(255,255,255,0.5); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  transition: box-shadow 0.15s ease;
}

.partner-card:hover { box-shadow: 0 4px 16px var(--shadow); }

.partner-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.partner-card-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-card-meta span { display: flex; align-items: center; gap: 4px; }

.partner-card-reason {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 10px;
}

.partner-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.partner-type-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--ei-cyan-light);
  color: var(--ei-cyan-dark);
  margin-bottom: 8px;
}

.fit-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.fit-score-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.fit-score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-top: 2px;
}

.score-high { color: #38a169; }
.score-mid  { color: #d69e2e; }
.score-low  { color: #e53e3e; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.category-tile {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.category-tile:hover { border-color: var(--ei-cyan); background: var(--ei-cyan-pale); }
.category-tile.selected { border-color: var(--ei-cyan); background: var(--ei-cyan-pale); box-shadow: 0 0 0 2px rgba(41,185,216,0.2); }

.category-tile-icon { font-size: 28px; margin-bottom: 8px; }
.category-tile-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.category-tile-count { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.pipeline-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.stage-identified  { background: #EBF8FF; color: #2B6CB0; }
.stage-contacted   { background: #FEF9C3; color: #92400E; }
.stage-meeting     { background: #FED7AA; color: #9C4221; }
.stage-agreed      { background: #D1FAE5; color: #065F46; }
.stage-active      { background: #C6F6D5; color: #22543D; }

.partner-pitch-chat {
  height: calc(100vh - var(--header-h) - 280px);
  min-height: 380px;
}

.value-prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.value-prop-card {
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.value-prop-card h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ei-cyan-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.value-prop-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px;
  color: var(--text-light);
  font-size: 14px;
}


/* ─── LOADING BUTTON SPINNER ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading-icon {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}
.btn-loading-icon.dark {
  border-color: rgba(0,0,0,0.12);
  border-top-color: var(--ei-cyan-dark);
}

.nav-section-header {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 12px 16px 3px;
  margin-top: 4px;
}
a.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s;
}
a.nav-item:hover { background: var(--ei-cyan-pale); color: var(--ei-cyan-dark); }
a.nav-item.active { background: var(--ei-cyan-pale); color: var(--ei-cyan-dark); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); margin-top: auto; }

/* ── PHP Platform Layout ─────────────────────────────────────────────── */
body { margin: 0; padding: 0; }

#app-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.main {
  flex: 1;
  min-width: 0;
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

/* Anchor nav items — remove default link styles */
a.nav-item {
  text-decoration: none;
  color: var(--text-mid);
}
a.nav-item:hover,
a.nav-item.active {
  background: var(--ei-cyan-pale);
  color: var(--ei-cyan-dark);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-light);
}

.sidebar-footer a {
  color: var(--danger);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.nav-section-header {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 8px 3px;
  margin-top: 4px;
}
