/* ===================================================================
   Property Wharf - Lead Gen View & LinkedIn Talent Sourcing Stylesheet
   Property Selection, Role Criteria, Graphical Cards, Saving & CSV Export
   =================================================================== */

.leads-view-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 160px);
}

/* ===================================================================
   1. COMMON HEADER BANNERS & STEP BARS
   =================================================================== */
.leads-header-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.leads-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #00e5b0, #0077b5);
}

.banner-title-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.3);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leads-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.leads-page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 900px;
}



/* ===================================================================
   2. PROPERTY SELECTION CARDS GRID
   =================================================================== */
.leads-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  width: 100%;
}

.lead-property-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.lead-property-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal);
  box-shadow: 0 10px 24px rgba(0, 229, 176, 0.12);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

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

.badge-type, .badge-cat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-type.tag-residential { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-type.tag-hospitality { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-type.tag-commercial { background: rgba(0, 229, 176, 0.15); color: #00e5b0; border: 1px solid rgba(0, 229, 176, 0.3); }
.badge-type.tag-specialty { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-type.tag-development { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-type.tag-default { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.badge-cat {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.card-valuation {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-teal);
  background: rgba(0, 229, 176, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 176, 0.2);
}

.card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.card-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-addr .pin-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-select-property-lead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-select-property-lead:hover {
  background: var(--accent-teal);
  color: #060d17;
  border-color: var(--accent-teal);
}

.btn-select-property-lead .arrow-icon {
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.btn-select-property-lead:hover .arrow-icon {
  transform: translateX(4px);
}

.leads-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.leads-empty-state .empty-icon {
  color: var(--text-muted);
}

.leads-empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}

.leads-empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 500px;
  margin: 0;
}

/* ===================================================================
   3. CRITERIA & ROLE SELECTION SCREEN
   =================================================================== */
.leads-criteria-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.leads-nav-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-leads-back {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-leads-back:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}



/* Selected Property Hero */
.selected-property-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.selected-property-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-teal);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-selected-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal);
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.hero-prop-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hero-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-addr .pin-icon {
  color: var(--accent-teal);
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-metric-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hero-metric-box .metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-metric-box .metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-teal);
}

.btn-change-prop {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-change-prop:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

/* Criteria Card Form */
.criteria-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.criteria-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.criteria-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.3);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.criteria-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.criteria-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Preset Role Pills */
.role-presets-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.presets-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.role-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-preset-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill, 999px);
  padding: 7px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-preset-pill:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-1px);
}

.role-preset-pill.active {
  background: rgba(0, 229, 176, 0.15);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 229, 176, 0.2);
}

/* Input Group */
.criteria-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-input-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.input-with-button-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.lead-job-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.lead-job-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.2);
}

.btn-execute-lead-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  height: 48px;
  background: linear-gradient(135deg, #00e5b0 0%, #00b48b 100%);
  border: 1px solid #00b48b;
  border-radius: var(--radius-sm);
  color: #060d17;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 229, 176, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-execute-lead-search:hover {
  background: linear-gradient(135deg, #26f0bf 0%, #00c79a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 229, 176, 0.45);
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Callout */
.leads-info-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(0, 119, 181, 0.08);
  border: 1px solid rgba(0, 119, 181, 0.25);
  border-radius: var(--radius-sm);
}

.leads-info-callout .callout-icon {
  color: #0077b5;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.callout-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===================================================================
   4. WAITING SCREEN
   =================================================================== */
.leads-waiting-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 40px 20px;
}

.waiting-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-pulse-container {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.radar-core {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 229, 176, 0.15);
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 16px rgba(0, 229, 176, 0.35);
}

.radar-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-teal);
  animation: radarPulseLeads 2.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
}

.ripple-2 {
  animation-delay: 1.1s;
}

@keyframes radarPulseLeads {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.waiting-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.waiting-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.waiting-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.waiting-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.waiting-step.active {
  color: var(--text-primary);
  font-weight: 500;
}

.waiting-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  flex-shrink: 0;
}

.waiting-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.waiting-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #00e5b0, #0077b5);
  border-radius: 3px;
  animation: waitingProgressMove 1.8s infinite ease-in-out;
}

@keyframes waitingProgressMove {
  0% { left: -40%; width: 40%; }
  50% { left: 40%; width: 50%; }
  100% { left: 100%; width: 40%; }
}

/* ===================================================================
   5. RESULTS SCREEN & TOP 5 GRAPHICAL CARDS
   =================================================================== */
.leads-results-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.leads-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.top-bar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-leads-action-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-leads-action-sm:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.target-prop-pill, .target-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}

.target-prop-pill strong, .target-role-pill strong {
  color: var(--accent-teal);
}

.btn-view-profile-drawer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-profile-drawer:hover {
  background: var(--accent-teal);
  color: #060d17;
}

/* Banner */
.leads-results-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.leads-results-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #00e5b0, #0077b5);
}

.banner-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.banner-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 900px;
}

.banner-stats-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  flex-shrink: 0;
}

.stat-count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-teal);
}

.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Leads Cards Grid */
.leads-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
  width: 100%;
}

.lead-graphical-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.lead-graphical-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-teal);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.lead-graphical-card.lead-saved-card {
  border-color: rgba(0, 229, 176, 0.5);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 229, 176, 0.03) 100%);
}

.lead-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.lead-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.lead-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lead-verified-ring {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0077b5;
  color: #ffffff;
  border: 2px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.lead-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lead-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-person-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.lead-match-pill {
  font-size: 11px;
  font-weight: 700;
  color: #060d17;
  background: linear-gradient(135deg, #00e5b0 0%, #38bdf8 100%);
  padding: 3px 8px;
  border-radius: var(--radius-pill, 999px);
  white-space: nowrap;
}

.lead-job-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  line-height: 1.3;
}

.lead-company-loc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.lead-company-name, .lead-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Body */
.lead-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.lead-exp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
}

.lead-exp-pill .exp-icon {
  color: #f59e0b;
}

.lead-summary-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.lead-skills-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.skills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.lead-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip {
  font-size: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Card Footer */
.lead-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-linkedin-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 119, 181, 0.35);
  border-radius: var(--radius-sm);
  color: #0077b5;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-linkedin-profile:hover {
  background: #0077b5;
  color: #ffffff;
  border-color: #0077b5;
}

.btn-linkedin-profile .ext-arrow {
  font-size: 13px;
}

.btn-save-lead-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius-sm);
  color: #060d17;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-save-lead-action:hover:not(:disabled) {
  background: #26f0bf;
  box-shadow: 0 4px 12px rgba(0, 229, 176, 0.3);
}

.btn-save-lead-action.saved {
  background: rgba(0, 229, 176, 0.15);
  border-color: rgba(0, 229, 176, 0.4);
  color: var(--accent-teal);
  cursor: default;
}

.btn-save-lead-action.saving {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: wait;
}

.btn-spinner-sm {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 229, 176, 0.3);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: btnSpin 0.7s infinite linear;
}

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

/* Bottom CSV Footer Card */
.leads-footer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  max-width: 650px;
}

.footer-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-footer-download-csv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius-sm);
  color: #060d17;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-footer-download-csv:hover {
  background: #26f0bf;
  box-shadow: 0 4px 14px rgba(0, 229, 176, 0.35);
}

.btn-footer-open-drawer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-footer-open-drawer:hover {
  border-color: var(--accent-teal);
}

/* ===================================================================
   6. PROPERTY PROFILE DRAWER INTEGRATION
   =================================================================== */
.detail-leads-section {
  border-color: rgba(0, 229, 176, 0.25) !important;
}

.btn-download-leads-csv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-download-leads-csv:hover {
  background: var(--accent-teal);
  color: #060d17;
}

.btn-new-leads-search-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-new-leads-search-sm:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

.leads-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-leads-notice {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-leads-notice .empty-icon {
  color: var(--accent-teal);
}

.empty-leads-notice .empty-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-leads-notice .empty-text p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
  max-width: 420px;
}

.btn-find-leads-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius-sm);
  color: #060d17;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-find-leads-cta:hover {
  background: #26f0bf;
}

.saved-leads-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-lead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.saved-lead-card:hover {
  border-color: var(--accent-teal);
}

.saved-lead-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lead-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5b0, #0077b5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.lead-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.lead-score-pill {
  font-size: 10px;
  font-weight: 700;
  color: #060d17;
  background: var(--accent-teal);
  padding: 2px 6px;
  border-radius: var(--radius-pill, 999px);
}

.lead-role-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
}

.lead-company-line {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-delete-lead-sm {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-delete-lead-sm:hover {
  color: #ef4444;
}

.saved-lead-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.saved-lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
}

.saved-lead-exp {
  color: var(--text-secondary);
  font-weight: 500;
}

.saved-lead-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0077b5;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
}

.saved-lead-linkedin-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .leads-cards-grid {
    grid-template-columns: 1fr;
  }

  .selected-property-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-right {
    width: 100%;
    justify-content: space-between;
  }

  .input-with-button-wrap {
    flex-direction: column;
  }

  .btn-execute-lead-search {
    justify-content: center;
  }
}
