/* ─── GB7ATLAS Design System ─────────────────────────────────────────────────
   Ported from GB7 AI OS (React/Tailwind) to pure CSS
   ──────────────────────────────────────────────────────────────────────────── */

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

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:          #07070f;
  --bg-card:     #0d0d1c;
  --bg-muted:    #13132a;
  --bg-sidebar:  #080814;
  --primary:     #2563ff;
  --primary-glow: rgba(37,99,255,0.35);
  --secondary:   #7c3aed;
  --cyan:        #06b6d4;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --pink:        #ec4899;
  --fg:          #e8e8f4;
  --fg-muted:    #8888b0;
  --fg-dim:      rgba(232,232,244,0.4);
  --fg-dimmer:   rgba(232,232,244,0.2);
  --border:      rgba(255,255,255,0.08);
  --border-light:rgba(255,255,255,0.06);
  --border-input:rgba(255,255,255,0.10);
  --glass-bg:    rgba(255,255,255,0.03);
  --glass-hover: rgba(255,255,255,0.06);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --font-main:   'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --shadow-blue: 0 0 20px rgba(37,99,255,0.35);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition:  all 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
.mono { font-family: var(--font-mono); }
.gradient-text {
  background: linear-gradient(135deg, #7aaaff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Components ──────────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.glass-hover {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.glass-hover:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: #3b74ff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(232,232,244,0.9);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}
.btn-ghost { color: var(--fg-muted); }
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #f87171; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon:hover { background: rgba(255,255,255,0.06); color: var(--fg); }

/* ─── Inputs ────────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--fg);
  transition: var(--transition);
  outline: none;
}
.input::placeholder { color: var(--fg-dimmer); }
.input:focus { border-color: rgba(37,99,255,0.5); background: rgba(255,255,255,0.07); }
.input-group { position: relative; }
.input-group .input { padding-left: 36px; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}
textarea.input { resize: vertical; min-height: 100px; }
select.input { cursor: pointer; appearance: none; }
label.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Badges / Tags ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid;
}
.badge-blue   { color: #7aaaff; border-color: rgba(37,99,255,0.3); background: rgba(37,99,255,0.1); }
.badge-purple { color: #c4b5fd; border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.1); }
.badge-green  { color: #6ee7b7; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.1); }
.badge-amber  { color: #fcd34d; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); }
.badge-red    { color: #fca5a5; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); }
.badge-cyan   { color: #67e8f9; border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.1); }
.badge-muted  { color: var(--fg-muted); border-color: var(--border); background: var(--glass-bg); }

/* ─── Status dots ───────────────────────────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.live     { background: var(--green); animation: pulse 1.5s infinite; }
.status-dot.upcoming { background: var(--amber); }
.status-dot.done     { background: rgba(255,255,255,0.2); }

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

/* ─── App Layout ────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 224px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  z-index: 100;
}
.sidebar-logo {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(37,99,255,0.6);
  flex-shrink: 0;
}
.logo-text { font-weight: 800; font-size: 0.9rem; letter-spacing: -0.02em; }
.sidebar-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-section-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 12px 10px 4px;
  opacity: 0.6;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  color: rgba(232,232,244,0.5);
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.nav-item:hover { color: rgba(232,232,244,0.8); background: rgba(255,255,255,0.04); }
.nav-item.active {
  background: rgba(37,99,255,0.12);
  color: #7aaaff;
  border-color: rgba(37,99,255,0.2);
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: rgba(37,99,255,0.2);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 99px;
}
.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding: 10px 8px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(37,99,255,0.2);
  border: 1px solid rgba(37,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #93c5fd;
  flex-shrink: 0;
}
.avatar-lg { width: 40px; height: 40px; font-size: 0.85rem; }

/* Topbar */
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  background: rgba(7,7,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
}
.topbar-breadcrumb .dim { color: var(--fg-dim); }
.topbar-breadcrumb .current { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.search-bar {
  position: relative;
  width: 220px;
}
.search-bar input { padding-right: 40px; }
.search-bar .kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--fg-dimmer);
}

/* Main content */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.page-content { flex: 1; overflow-y: auto; }

/* ─── Dashboard ─────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-title { font-size: 1.25rem; font-weight: 800; }
.page-subtitle { font-size: 0.8rem; color: var(--fg-dim); margin-top: 2px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 18px;
}
.stat-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.stat-value { font-size: 1.5rem; font-weight: 800; margin-bottom: 2px; }
.stat-label { font-size: 0.7rem; color: var(--fg-dim); }
.stat-delta { font-size: 0.65rem; font-family: var(--font-mono); color: var(--fg-dimmer); margin-top: 2px; }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-card { padding: 20px; }
.chart-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.chart-sub { font-size: 0.7rem; color: var(--fg-dim); }

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Meetings ──────────────────────────────────────────────────────────────── */
.meetings-shell { display: flex; height: 100%; gap: 0; }
.meetings-list {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.meetings-list-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meetings-list-search { padding: 8px; border-bottom: 1px solid var(--border-light); }
.meetings-list-items { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.meeting-item {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.meeting-item:hover { background: rgba(255,255,255,0.03); }
.meeting-item.active { background: rgba(37,99,255,0.08); border-color: rgba(37,99,255,0.2); }
.meeting-item-title { font-size: 0.75rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meeting-item-meta { font-size: 0.65rem; color: var(--fg-dim); }
.meeting-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.meeting-detail {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.meeting-detail-header { display: flex; justify-content: space-between; align-items: flex-start; }
.meeting-detail-actions { display: flex; gap: 8px; }

/* AI Summary card */
.ai-card { padding: 20px; }
.ai-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-card-body { font-size: 0.8rem; color: var(--fg-dim); line-height: 1.7; }
.ai-card-body h3 { color: var(--fg); font-size: 0.875rem; margin: 12px 0 6px; }
.ai-card-body ul { padding-left: 16px; }
.ai-card-body li { margin-bottom: 4px; }
.ai-card-body strong { color: var(--fg); }

/* Transcript */
.transcript-wrap {
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--fg-dim);
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.transcript-speaker { color: var(--primary); font-weight: 600; margin-right: 6px; }
.transcript-time { color: var(--fg-dimmer); margin-right: 8px; font-size: 0.65rem; }

/* Action items */
.action-items { display: flex; flex-direction: column; gap: 10px; }
.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.action-item:last-child { border-bottom: none; }
.action-checkbox {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.action-checkbox.done { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); }
.action-item-text { font-size: 0.8rem; font-weight: 500; }
.action-item-text.done { text-decoration: line-through; color: var(--fg-dim); }
.action-item-meta { font-size: 0.65rem; color: var(--fg-dimmer); margin-top: 1px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(37,99,255,0.05);
}

/* ─── CRM ───────────────────────────────────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 100%;
  overflow: hidden;
}
.kanban-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  flex-shrink: 0;
}
.kanban-col-title { font-size: 0.75rem; font-weight: 600; color: rgba(232,232,244,0.7); display: flex; align-items: center; gap: 8px; }
.kanban-col-count { font-size: 0.65rem; font-family: var(--font-mono); color: var(--fg-dimmer); }
.kanban-col-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.kanban-card { padding: 14px; }
.kanban-card-name { font-size: 0.75rem; font-weight: 600; margin-bottom: 3px; }
.kanban-card-contact { font-size: 0.65rem; color: var(--fg-dim); margin-bottom: 8px; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-value { font-size: 0.875rem; font-weight: 800; }
.kanban-card-days { font-size: 0.6rem; font-family: var(--font-mono); color: var(--fg-dimmer); }
.kanban-card-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.kanban-card-actions button { font-size: 0.65rem; color: var(--fg-dimmer); background: none; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.kanban-card-actions button:hover { color: var(--primary); background: rgba(37,99,255,0.1); }
.kanban-add-btn {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 0.75rem;
  color: var(--fg-dimmer);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.kanban-add-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--fg-dim); }

/* ─── AI Command Center ─────────────────────────────────────────────────────── */
.chat-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  min-height: 0;
}
.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 80%;
}
.chat-bubble.user { flex-direction: row-reverse; margin-left: auto; }
.chat-bubble-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.chat-bubble.ai .chat-bubble-avatar { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); color: #c4b5fd; }
.chat-bubble.user .chat-bubble-avatar { background: var(--primary); color: #fff; }
.chat-bubble-content {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.813rem;
  line-height: 1.7;
  white-space: pre-line;
}
.chat-bubble.ai .chat-bubble-content {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: rgba(232,232,244,0.8);
}
.chat-bubble.user .chat-bubble-content {
  background: var(--primary);
  color: #fff;
}
.chat-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.chat-prompt-chip {
  font-size: 0.7rem;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.chat-prompt-chip:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 20px 20px;
}
.chat-input { flex: 1; background: transparent; border: none; outline: none; font-size: 0.875rem; color: var(--fg); }
.chat-input::placeholder { color: var(--fg-dimmer); }

/* ─── Knowledge Base ────────────────────────────────────────────────────────── */
.kb-shell { height: 100%; display: flex; flex-direction: column; gap: 20px; padding: 24px; overflow: hidden; }
.kb-search-bar { position: relative; }
.kb-search-bar input { padding: 14px 16px 14px 44px; font-size: 0.875rem; }
.kb-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
}
.kb-article { padding: 18px; cursor: pointer; }
.kb-article:hover { border-color: rgba(255,255,255,0.15); }
.kb-article-category { font-size: 0.65rem; font-family: var(--font-mono); margin-bottom: 8px; }
.kb-article-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.kb-article-preview { font-size: 0.75rem; color: var(--fg-dim); line-height: 1.6; }
.kb-article-meta { font-size: 0.65rem; color: var(--fg-dimmer); margin-top: 10px; }

/* ─── Reports ───────────────────────────────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.report-card { padding: 20px; }
.chart-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--fg-dimmer);
  font-family: var(--font-mono);
}

/* ─── Integrations ──────────────────────────────────────────────────────────── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.integration-card { padding: 20px; }
.integration-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.integration-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.integration-desc { font-size: 0.75rem; color: var(--fg-dim); line-height: 1.5; margin-bottom: 14px; }
.integration-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.integration-badge-connected { color: var(--green); font-size: 0.7rem; display: flex; align-items: center; gap: 4px; }
.integration-badge-disconnected { color: var(--fg-muted); font-size: 0.7rem; }

/* ─── Settings ──────────────────────────────────────────────────────────────── */
.settings-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 100%;
  gap: 0;
}
.settings-nav {
  border-right: 1px solid var(--border-light);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  cursor: pointer;
  transition: var(--transition);
}
.settings-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--fg); }
.settings-nav-item.active { background: rgba(37,99,255,0.1); color: #7aaaff; }
.settings-content { padding: 24px; overflow-y: auto; }
.settings-section { margin-bottom: 32px; }
.settings-section-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }

/* ─── Tables ────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px 14px;
  font-size: 0.813rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--fg-dim);
}
tbody tr:hover td { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  pointer-events: all;
  animation: slideIn 0.2s ease;
  min-width: 280px;
  max-width: 380px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── Loading ───────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: loadBar 1.5s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes loadBar { 0%,100%{width:0%;margin-left:0} 50%{width:60%;margin-left:20%} }

/* ─── Live Recording UI ─────────────────────────────────────────────────────── */
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 0.75rem;
  color: #fca5a5;
}
.recording-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1s ease-in-out infinite;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
}
.waveform-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: wave 0.8s ease-in-out infinite alternate;
}
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave { from { height: 4px; } to { height: 24px; } }

/* ─── Landing Page ──────────────────────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
}
.hero {
  padding: 120px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(37,99,255,0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; line-height: 1.05; margin-bottom: 20px; }
.hero p { font-size: 1.125rem; color: var(--fg-dim); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features-section { padding: 80px 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

/* ─── Auth Page ─────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,255,0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.auth-card { width: 100%; max-width: 380px; padding: 32px; position: relative; z-index: 1; }

/* ─── Dividers / Pills ──────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-dimmer);
  font-size: 0.7rem;
  margin: 16px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,255,0.08);
  border: 1px solid rgba(37,99,255,0.2);
  color: #93c5fd;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

/* ─── AI Glow effects ───────────────────────────────────────────────────────── */
.glow-blue  { box-shadow: 0 0 40px rgba(37,99,255,0.25); }
.glow-purple{ box-shadow: 0 0 40px rgba(124,58,237,0.25); }
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 8px 12px;
}
.thinking-dots span {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

/* ─── Workflow Builder ──────────────────────────────────────────────────────── */
.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  position: relative;
}
.workflow-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  margin: 0 auto;
  opacity: 0.4;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -224px; transition: left 0.25s ease; z-index: 200; }
  .sidebar.open { left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid, .bottom-grid, .reports-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .meetings-list { width: 100%; border-right: none; }
  .meetings-shell { flex-direction: column; }
  .landing-nav { padding: 0 20px; }
  .hero { padding: 100px 20px 60px; }
  .kanban-board { grid-template-columns: 1fr; }
}

/* ─── Markdown-rendered content ─────────────────────────────────────────────── */
.md-content h1, .md-content h2, .md-content h3 { color: var(--fg); margin-top: 16px; margin-bottom: 8px; }
.md-content p { margin-bottom: 10px; font-size: 0.813rem; color: var(--fg-dim); line-height: 1.7; }
.md-content ul, .md-content ol { padding-left: 20px; margin-bottom: 10px; }
.md-content li { font-size: 0.813rem; color: var(--fg-dim); margin-bottom: 4px; }
.md-content strong { color: var(--fg); font-weight: 600; }
.md-content code { font-family: var(--font-mono); font-size: 0.75rem; background: rgba(37,99,255,0.1); padding: 1px 5px; border-radius: 4px; color: #93c5fd; }
.md-content blockquote { border-left: 3px solid var(--primary); padding-left: 12px; color: var(--fg-muted); font-style: italic; margin: 10px 0; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
