/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --navy: #0d1b3e;
  --navy-light: #1a2f5a;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --accent: #4a90d9;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #f8f9fc;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.center { text-align: center; }

/* ===== CONTAINER ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg-light); }
.btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #fca5a5;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-outline:hover { background: #fef2f2; border-color: #dc2626; }
.btn-danger-outline:disabled { opacity: 0.4; cursor: not-allowed; }
.full-btn { width: 100%; display: block; padding: 1rem; font-size: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--gold); }
.btn-nav {
  padding: 0.5rem 1.2rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--gold-light) !important; }
.btn-nav.active { background: var(--gold-light) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a6a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 8% 4rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.hero-content { max-width: 620px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-cta .btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.hero-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.badge-inner {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.badge-icon { display: block; font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
.badge-text { color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500; line-height: 1.6; }

/* ===== ABOUT ===== */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.about-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
}
.about-card-body { padding: 1.5rem; }
.about-card-body h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.25rem; }
.about-card-title { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.15rem; }
.about-card-company { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.about-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--bg-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* ===== SERVICES ===== */
.services { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ===== TRUST SECTION ===== */
.trust-section { background: var(--navy); }
.trust-section .section-label { color: var(--gold); }
.trust-section .section-title { color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.trust-text p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.75; }
.trust-list { list-style: none; }
.trust-list li { color: rgba(255,255,255,0.85); padding: 0.5rem 0; font-size: 0.95rem; }
.trust-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.trust-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.trust-card h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.3rem; }
.trust-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--bg-light); }
.contact-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto 3rem; font-size: 1rem; }
.contact-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group.full { margin-bottom: 1.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select, .form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus, .form-input:focus {
  outline: none;
  border-color: var(--navy);
}
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== LOGIN SCREEN ===== */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.login-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 0.25rem; }
.login-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.login-card .form-group { text-align: left; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 1.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.auth-tab { flex: 1; padding: 0.65rem; background: #fff; border: none; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.auth-tab.active { background: var(--navy); color: #fff; }
.auth-error { color: #dc2626; font-size: 0.83rem; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: #fef2f2; border-radius: var(--radius-sm); border: 1px solid #fca5a5; }
.auth-success { color: #16a34a; font-size: 0.83rem; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: #f0fdf4; border-radius: var(--radius-sm); border: 1px solid #86efac; }
.password-rules { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.5rem; }
.rule { font-size: 0.78rem; color: #9ca3af; }
.rule-pass { color: #16a34a; font-weight: 600; }
.btn-logout { padding: 0.6rem 1.2rem; background: transparent; color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }

/* ===== CRM BODY ===== */
.crm-body { background: var(--bg-light); }
.crm-header {
  background: var(--navy);
  padding: 6rem 0 2.5rem;
  margin-top: 64px;
}
.crm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.crm-title { font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.crm-subtitle { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.crm-header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.crm-header-actions .btn-primary,
.crm-header-actions .btn-secondary { white-space: nowrap; }
.crm-header-actions .btn-secondary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.crm-header-actions .btn-secondary:hover { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }

/* STATS BAR */
.crm-stats-bar {
  background: var(--navy-light);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.crm-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.crm-stat { text-align: center; }
.crm-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.crm-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* CRM MAIN */
.crm-main { padding: 2rem 0 4rem; }

/* TOOLBAR */
.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.crm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}
.crm-search {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: #fff;
  transition: border-color 0.2s;
}
.crm-search:focus { outline: none; border-color: var(--navy); }
.crm-filter-group { display: flex; gap: 0.5rem; }
.crm-select {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-width: 140px;
}
.crm-select:focus { outline: none; border-color: var(--navy); }
.crm-action-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* TABLE */
.table-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.clients-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.clients-table thead { background: var(--bg-light); border-bottom: 2px solid var(--border); }
.clients-table th {
  padding: 0.9rem 0.75rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.clients-table th.sortable { cursor: pointer; user-select: none; }
.clients-table th.sortable:hover { color: var(--navy); }
.sort-arrow { opacity: 0.4; margin-left: 0.2rem; }
.clients-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.clients-table th:last-child,
.clients-table td:last-child { min-width: 120px; }
/* Hide less important columns on smaller screens to make room for actions */
.col-source { display: none; }
.col-date { display: none; }
.clients-table tbody tr:hover { background: var(--bg-light); }
.clients-table tbody tr:last-child td { border-bottom: none; }
.clients-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--navy); }

/* STATUS BADGE */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef9c3; color: #a16207; }
.status-meeting { background: #dcfce7; color: #15803d; }
.status-client { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.status-notinterested { background: #fee2e2; color: #dc2626; }

/* SOURCE BADGE */
.market-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.market-young       { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.market-established { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.market-retirement  { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.market-business    { background: #fdf4ff; color: #7e22ce; border: 1px solid #d8b4fe; }

.btn-linkedin-contact {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #0077b5;
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-linkedin-contact:hover { background: #005f8f; }
.btn-linkedin-contact.contacted { background: #16a34a; }
.btn-linkedin-contact.contacted:hover { background: #15803d; }

.market-inline-select {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  max-width: 140px;
}
.market-inline-select.has-value {
  color: var(--text);
  border-color: var(--accent);
}

.source-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.source-linkedin { background: #e0f0ff; color: #0077b5; border-color: #93c5fd; }

/* ROW ACTIONS */
.row-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: background 0.15s;
  color: var(--text-muted);
}
.action-btn:hover { background: var(--bg-light); color: var(--navy); }
.action-btn.edit:hover { color: var(--accent); }
.action-btn.email:hover { color: #16a34a; }
.action-btn.call-btn:hover { color: #16a34a; background: #dcfce7; }
.action-btn.delete:hover { color: #dc2626; background: #fef2f2; }

/* TABLE EMPTY */
.table-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.table-empty h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.table-empty p { margin-bottom: 2rem; }
.empty-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== COMPOSE PANEL ===== */
.compose-panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compose-panel-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.compose-panel-header h3 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.compose-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.compose-close:hover { color: #fff; }
.compose-body { padding: 1.5rem; }
.compose-to {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-height: 80px;
  overflow-y: auto;
  word-break: break-all;
  line-height: 1.6;
}
.compose-actions { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.compose-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.5; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.modal-wide { max-width: 780px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.3rem; color: var(--navy); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal form { padding: 1.5rem 1.75rem; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

/* LINKEDIN IMPORT MODAL */
.import-instructions {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.import-instructions h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.75rem; }
.import-instructions ol { padding-left: 1.25rem; }
.import-instructions ol li { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.5; }
.import-instructions ol li strong { color: var(--text); }
.import-tip {
  margin-top: 1rem;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  color: #854d0e;
  line-height: 1.5;
}
.import-drop-zone {
  margin: 1.5rem 1.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.import-drop-zone.drag-over { border-color: var(--gold); background: #fffbeb; }
.drop-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.import-drop-zone p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.drop-sub { font-size: 0.8rem !important; margin-bottom: 1rem !important; }
.import-preview { padding: 0 1.75rem 1.5rem; }
.import-preview h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.75rem; }
.preview-table-wrap { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.preview-table th {
  padding: 0.6rem 0.75rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: sticky;
  top: 0;
}
.preview-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }
.preview-table tbody tr:last-child td { border-bottom: none; }

/* NOTES MODAL */
.notes-content { padding: 1.5rem 1.75rem; }
.notes-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--accent); }

/* ===== PORTAL TABS ===== */
.portal-tabs-bar { background: #fff; border-bottom: 2px solid var(--border); }
.portal-tabs { display: flex; gap: 0; }
.portal-tab {
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.portal-tab:hover { color: var(--navy); }
.portal-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ===== EMAIL OUTREACH TAB ===== */
.outreach-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
  align-items: start;
}
.outreach-contacts {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.outreach-contacts-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.outreach-contacts-header h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.75rem; }
.outreach-search-wrap { position: relative; margin-bottom: 0.75rem; }
.outreach-search-wrap .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.85rem; }
.outreach-search-wrap .crm-search { padding-left: 2.2rem; width: 100%; }
.outreach-select-bar { display: flex; align-items: center; justify-content: space-between; }
.outreach-selected-count { font-size: 0.78rem; font-weight: 600; color: var(--gold); }
.outreach-contact-list { max-height: 520px; overflow-y: auto; }
.outreach-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.outreach-contact-item:last-child { border-bottom: none; }
.outreach-contact-item:hover { background: var(--bg-light); }
.outreach-contact-item.selected { background: #fffbeb; }
.outreach-contact-item input[type="checkbox"] { flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.outreach-contact-info { flex: 1; min-width: 0; }
.outreach-contact-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outreach-contact-email { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outreach-no-email { font-size: 0.75rem; color: #d1d5db; font-style: italic; }
.outreach-compose {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.outreach-compose h3 { font-size: 1rem; color: var(--navy); margin-bottom: 1.25rem; }
.outreach-to-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  min-height: 44px;
}
.outreach-to-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
.outreach-to-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.outreach-pill {
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.outreach-actions { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 400px; }
  .trust-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-toolbar { flex-direction: column; align-items: stretch; }
  .crm-filter-group, .crm-action-group { flex-wrap: wrap; }
  .crm-search-wrap { min-width: 100%; }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; padding: 5rem 1.5rem 3rem; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-badge { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-visual { grid-template-columns: 1fr 1fr; }
  .crm-header-inner { flex-direction: column; align-items: flex-start; }
  .clients-table { font-size: 0.8rem; }
  .clients-table th, .clients-table td { padding: 0.65rem 0.6rem; }
}
