/* ── Font Awesome overrides (must come before universal selector) ── */
.fa-solid { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.fa-regular { font-family: "Font Awesome 6 Free" !important; font-weight: 400 !important; }
.fa-brands { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
[class^="fa-"], [class*=" fa-"] { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }

/* ═══════════════════════════════════════
   LeadMax Design System — Clean Light
   ═══════════════════════════════════════ */

:root {
  --primary:       #2563EB;
  --primary-dark:  #2563EB;
  --primary-light: #EFF6FF;
  --accent:        #2563EB;
  --success:       #16A34A;
  --warning:       #D97706;
  --danger:        #DC2626;
  --purple:        #7C3AED;
  --n100: #FFFFFF;
  --n200: #F8FAFC;
  --n300: #D1D5DB;
  --n500: #6B7280;
  --n900: #111827;
}

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

html { background-color: #2563EB; }

body, input, textarea, select, button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F1F5F9;
  min-height: 100vh;
  color: var(--n900);
  line-height: 1.6;
}

/* ── Topbar (home + login only) ── */
.topbar {
  background: #FFFFFF;
  height: 56px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #D1D5DB;
}

.logo { display: flex; align-items: center; gap: 8px; }

.logo-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: #2563EB;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.3px;
}

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

.nav-user {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}

.btn-logout {
  padding: 6px 14px;
  background: transparent;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-logout:hover { background: #F8FAFC; }

/* ── Page Layout ── */
.page-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 2rem;
  background: #F1F5F9;
}

/* ── Score Badges — shared pill style across all screens ── */
.score-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.score-badge.high  { background: #DCFCE7; color: #166534; }
.score-badge.mid   { background: #FEF9C3; color: #854D0E; }
.score-badge.low   { background: #FEE2E2; color: #991B1B; }
.score-badge.empty { background: #F3F4F6; color: #6B7280; }

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

.page-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--n900);
}

/* ── Buttons ── */
.btn-add {
  padding: 8px 18px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-add:hover { background: #1D4ED8; }

.btn-submit {
  width: 100%;
  padding: 12px 16px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.btn-submit:hover { background: #1D4ED8; }

.btn-cancel {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* ── Form Fields ── */
.field-label {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  outline: none;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus,
.field-textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: white;
}

.field-textarea { resize: vertical; min-height: 90px; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,24,39,0.45);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--n100);
  border-radius: 16px 16px 0 0;
  border: 1px solid #D1D5DB;
  border-bottom: none;
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 480px;
  padding-bottom: 100px;
}

.modal-handle {
  width: 40px; height: 4px;
  background: var(--n300);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--n900);
  margin-bottom: 1.5rem;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: #F8FAFC;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
}
.empty-icon { font-size: 40px; margin-bottom: 0.75rem; }
.empty-text { font-size: 15px; color: var(--n900); font-weight: 500; margin-bottom: 0.25rem; }
.empty-sub  { font-size: 13px; color: var(--n500); }

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.status-in_progress { background: #EFF6FF; color: #1D4ED8; }
.status-sold        { background: #DCFCE7; color: #166534; }
.status-not_sold    { background: #F3F4F6; color: #6B7280; }
.status-dead        { background: #FEE2E2; color: #991B1B; }

/* ── Likelihood Badges ── */
.likelihood-badge  { font-size: 12px; font-weight: 500; letter-spacing: 0.2px; }
.likelihood-high   { color: var(--success); }
.likelihood-mid    { color: var(--warning); }
.likelihood-low    { color: var(--danger); }

/* ── Accent Square ── */
.accent-sq {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

/* ── Avatar Circle ── */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #F1F5F9;
  display: flex;
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #E2E8F0;
  height: 72px;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  text-decoration: none;
  color: #1E293B;
  font-size: 10px;
  font-weight: 500;
  gap: 3px;
  transition: color 0.2s;
  position: relative;
}

.nav-tab:hover { color: #1E293B; }

.nav-tab.active {
  color: #2563EB;
}

.nav-tab.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563EB;
  margin-top: 2px;
}

.nav-tab .tab-icon { font-size: 22px; }

.nav-tab-record {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 8px;
  position: relative;
  top: -12px;
}

.nav-record-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #DC2626;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(220,38,38,0.35);
  transition: box-shadow 0.2s;
}
.nav-record-fab:hover { box-shadow: 0 6px 24px rgba(220,38,38,0.45); }


/* ── LM Monogram Nav Icon ── */
.nav-lm-icon {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nav-lm-icon .nl { color: #111827 !important; }
.nav-lm-icon .nm { color: #2563EB !important; }

/* ── Tabler icon sizing in nav ── */
.nav-tab .ti { font-size: 22px; line-height: 1; }

/* ── Pill Tab Strip ── */
.pill-tab-strip {
  display: flex;
  background: #F8FAFC;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 16px;
}
.pill-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  color: #6B7280;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: center;
}
.pill-tab-btn.active {
  background: #2563EB;
  color: #FFFFFF;
}

/* ── Briefing Cards ── */
.briefing-item {
  background: #F8FAFC;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid #D1D5DB;
}
.briefing-item.commitment { border-left-color: #DC2626; }
.briefing-item.appointment { border-left-color: #D97706; }
.briefing-item.ai_task { border-left-color: #2563EB; }
.briefing-item.ai_followup { border-left-color: #7C3AED; }
.briefing-item.important { border-left-color: #2563EB; }
.briefing-item-title { font-size: 14px; font-weight: 500; color: #111827; margin-bottom: 2px; }
.briefing-item-reason { font-size: 13px; color: #6B7280; line-height: 1.5; }
.briefing-item-prospect { font-size: 12px; font-weight: 500; color: #2563EB; margin-top: 4px; }

.briefing-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 10px;
}
.briefing-section-header.urgent { color: #DC2626; }
.briefing-section-header.important { color: #2563EB; }

.briefing-narrative {
  background: #EFF6FF;
  border: 1px solid #D1D5DB;
  border-left: 3px solid #93C5FD;
  border-radius: 12px;
  padding: 18px 20px;
  color: #111827;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
  font-style: italic;
}

/* ── Top Bar ── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #2563EB;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.top-bar-inner {
  width: 100%;
  max-width: 480px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
}

.top-bar-logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.top-bar-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: white; font-size: 22px;
  flex-shrink: 0;
}

.top-bar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.top-bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.top-bar-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  border-radius: 10px;
  transition: color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.top-bar-icon-btn.active,
.top-bar-icon-btn:hover { color: white; opacity: 1; }

/* ── Top Bar: mode toggle on blue background ── */
.top-bar .mode-toggle-pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}
.top-bar .mode-btn { color: rgba(255,255,255,0.7); }
.top-bar .mode-btn.active { background: white; color: #2563EB; }

/* No CSS filters applied to logos — raw files used as-is. */
