/* ========================================
   Human Sync Sales Engine — Luxury Dark Theme
   ======================================== */

:root {
  --gold: #C9A96E;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --gold-hover: #d4b87d;
  --bg: #070709;
  --surface-1: #0e0e12;
  --surface-2: #151519;
  --surface-3: #1c1c22;
  --border: #25252e;
  --text: #e8e6e3;
  --text-dim: #8a8a96;
  --text-muted: #5a5a66;
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --sidebar-width: 240px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

::selection { background: var(--gold-dim); color: var(--gold); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Sidebar ===== */
#sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.brand-accent { color: var(--gold); }
.brand-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }

.nav-links {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--gold); background: var(--gold-dim); }
.nav-icon { font-size: 14px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.system-health {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.health-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.health-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.health-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.health-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }

.arr-counter { display: flex; justify-content: space-between; align-items: center; }
.arr-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.arr-value { font-family: var(--font-serif); font-size: 20px; color: var(--gold); }

/* ===== Main Content ===== */
#main-content {
  margin-left: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  padding: 24px 32px;
}

.view { display: none; }
.view.active { display: block; }

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.view-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

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

.today-date {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Buttons ===== */
.btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover { background: var(--gold-hover); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

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

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 12px; margin-top: 16px; }

.btn-danger { background: rgba(248, 113, 113, 0.15); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }

.btn-success { background: rgba(74, 222, 128, 0.15); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.3); }
.btn-success:hover { background: rgba(74, 222, 128, 0.25); }

/* ===== Cards & Surfaces ===== */
.section-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.section-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--gold);
}

/* ===== Briefing ===== */
.briefing-card {
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

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

.briefing-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
}

.briefing-date { font-size: 13px; color: var(--text-dim); }

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.briefing-stat {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-value { display: block; font-size: 24px; font-weight: 700; color: var(--text); }

.talking-point, .seasonal-intel {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
}

.talking-point h4, .seasonal-intel h4 {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card.accent { border-color: var(--gold); background: var(--gold-dim); }

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card.accent .stat-number { color: var(--gold); }

.stat-desc { font-size: 12px; color: var(--text-dim); }

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.form-input, .form-textarea, select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

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

select option { background: var(--surface-2); color: var(--text); }

.search-config {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

/* ===== Prospect Queue ===== */
.prospect-queue { display: flex; flex-direction: column; gap: 12px; }

.queue-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}

.queue-card:hover { border-color: var(--gold); }

.queue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.queue-card-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.queue-card-info .role {
  font-size: 13px;
  color: var(--text-dim);
}

.queue-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-prospect { background: var(--gold-dim); color: var(--gold); }
.badge-partner { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.badge-followup { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.badge-trigger { background: rgba(248, 113, 113, 0.15); color: var(--red); }

.score-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.score-high { background: rgba(74, 222, 128, 0.15); color: var(--green); border: 2px solid var(--green); }
.score-mid { background: rgba(251, 191, 36, 0.15); color: var(--yellow); border: 2px solid var(--yellow); }
.score-low { background: rgba(248, 113, 113, 0.15); color: var(--red); border: 2px solid var(--red); }

.queue-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.detail-item { display: flex; gap: 6px; }
.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text); }

.queue-card-research {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.health-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.signal-tag {
  padding: 2px 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  font-size: 11px;
  color: var(--green);
}

.queue-card-message {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-header .touch-label {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-subject {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}

.message-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-wrap;
}

.message-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.queue-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ===== Kanban Board ===== */
.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 20px;
  min-height: 500px;
}

.kanban-column {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
}

.kanban-header {
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-header h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.kanban-count {
  background: var(--gold-dim);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.kanban-cards {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 8px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.kanban-card:hover { border-color: var(--gold); transform: translateY(-1px); }

.kanban-card-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.kanban-card-company { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-card-score {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.kanban-card-city { font-size: 11px; color: var(--text-muted); }

.pipeline-math-bar {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.math-item { text-align: center; }
.math-current { font-size: 24px; font-weight: 700; }
.math-target { font-size: 13px; color: var(--text-muted); }
.math-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.math-healthy { color: var(--green); }
.math-warning { color: var(--yellow); }
.math-critical { color: var(--red); }

/* ===== KPI Grid ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kpi-title { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.kpi-trend.up { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.kpi-trend.down { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.kpi-trend.flat { background: rgba(138, 138, 150, 0.15); color: var(--text-dim); }

.kpi-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.kpi-target { font-size: 13px; color: var(--text-dim); }

.kpi-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s;
}

.conversion-bars { display: flex; flex-direction: column; gap: 12px; }

.conversion-item {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.conversion-label { font-size: 13px; color: var(--text-dim); }
.conversion-bar-wrap { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.conversion-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.conversion-value { font-size: 13px; font-weight: 600; text-align: right; }

.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.source-card { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.source-name { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.source-count { font-size: 24px; font-weight: 700; }

/* ===== Partner & Member Grids ===== */
.partners-grid, .members-grid, .events-grid, .clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.partner-card, .member-card, .event-card, .cluster-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}

.partner-card:hover, .member-card:hover, .event-card:hover, .cluster-card:hover {
  border-color: var(--gold);
}

.card-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.card-detail { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.card-actions { margin-top: 12px; display: flex; gap: 8px; }

/* ===== Tabs ===== */
.partner-tabs, .intel-tabs, .playbook-nav, .queue-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover { color: var(--text); border-color: var(--text-muted); }
.tab-btn.active { background: var(--gold-dim); color: var(--gold); border-color: var(--gold); }

/* ===== Intel Grid ===== */
.intel-grid { display: flex; flex-direction: column; gap: 12px; }

.intel-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.intel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.intel-type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 10px; }
.intel-type.longevity_news { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.intel-type.competitor { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.intel-type.talking_point { background: rgba(201, 169, 110, 0.15); color: var(--gold); }
.intel-type.prospect_news { background: rgba(96, 165, 250, 0.15); color: var(--blue); }

.intel-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.intel-summary { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ===== Optimization ===== */
.system-health-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.system-health-panel h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.health-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.health-metric { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.health-value { font-size: 18px; font-weight: 700; }
.health-status { font-size: 12px; margin-top: 4px; }

.report-content { font-size: 13px; line-height: 1.7; color: var(--text-dim); white-space: pre-wrap; }

/* ===== Playbook ===== */
.playbook-content {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.playbook-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  margin: 24px 0 12px;
}

.playbook-content h3:first-child { margin-top: 0; }

.playbook-content h4 {
  font-size: 15px;
  color: var(--text);
  margin: 16px 0 8px;
}

.playbook-content p { margin-bottom: 12px; }

.playbook-content ul, .playbook-content ol {
  margin: 8px 0 16px 20px;
}

.playbook-content li { margin-bottom: 6px; }

.playbook-content .time-block {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.playbook-content .objection-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 12px 0;
}

.playbook-content .objection-trigger {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}

.playbook-content .objection-response {
  color: var(--green);
}

/* ===== Response AI ===== */
.response-ai-container { max-width: 800px; }

.prospect-context {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.context-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.analysis-result {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.analysis-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.analysis-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.temp-gauge {
  display: flex;
  gap: 3px;
  align-items: center;
}

.temp-bar {
  width: 20px;
  height: 24px;
  border-radius: 3px;
  background: var(--surface-3);
}

.temp-bar.active-low { background: var(--red); }
.temp-bar.active-mid { background: var(--yellow); }
.temp-bar.active-high { background: var(--green); }

.draft-reply { margin-top: 20px; }
.draft-reply h4 { font-size: 14px; color: var(--gold); margin-bottom: 12px; }
.reply-actions { display: flex; gap: 8px; margin-top: 12px; }

.recommended-materials {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 9, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }

/* ===== Win Animation ===== */
.win-animation {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 9, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-content {
  text-align: center;
  animation: winPulse 0.5s ease-out;
}

.win-content h2 {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 8px;
}

.win-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
}

@keyframes winPulse {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  animation: toastIn 0.3s ease-out;
  max-width: 360px;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.info { border-color: var(--blue); }

@keyframes toastIn {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ===== Activity List ===== */
.activity-list { display: flex; flex-direction: column; gap: 8px; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.activity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-time { color: var(--text-muted); font-size: 12px; margin-left: auto; flex-shrink: 0; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Loading ===== */
.loading {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .briefing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Pursuit Cards ===== */
.pursuits-grid {
  display: grid;
  gap: 16px;
}

.pursuit-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

.pursuit-header h4 {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.pursuit-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.pursuit-step {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.pursuit-step.done {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.pursuit-step.current {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.pursuit-step .step-num {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.pursuit-step .step-label {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}

.pursuit-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ===== Content Cards ===== */
.content-actions-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.content-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.content-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.content-card h4 {
  color: var(--text);
  font-size: 15px;
}

/* ===== Badge variants ===== */
.badge-followup {
  background: rgba(251, 191, 36, 0.15);
  color: var(--yellow);
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  #sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.active { display: block; }
  #main-content { margin-left: 0; padding-top: 64px; }
  .mobile-menu-toggle { display: flex; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .briefing-grid { grid-template-columns: 1fr; }
  .pursuit-steps { flex-wrap: wrap; }
}
