/* ── Profile ────────────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.profile-name { font-size: 20px; font-weight: 700; }
.profile-role { color: var(--text-secondary); font-size: 14px; margin-top: 4px; text-transform: capitalize; }

/* Role Switcher */
.role-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.role-switcher-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.role-switcher-toggle {
  display: flex;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.role-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.role-toggle-btn.active {
  background: var(--primary);
  color: white;
}

.profile-stats {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.profile-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.profile-stat + .profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.profile-stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.profile-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.profile-menu {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  min-height: 44px;
}

.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: var(--surface-alt); }
.profile-menu-item svg { color: var(--text-secondary); flex-shrink: 0; }

.profile-menu-item .chevron {
  margin-left: auto;
  color: var(--text-placeholder);
}

/* ── Buyer Preferences ──────────────────────────────── */
.pref-section {
  margin-bottom: 24px;
}

.pref-section h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pref-chip.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.chip-green {
  background: rgba(0, 212, 138, 0.1);
  color: var(--success);
  border-color: var(--success-border);
}
.chip-red {
  background: rgba(255, 68, 88, 0.1);
  color: var(--danger);
  border-color: var(--danger-border);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-range .input { flex: 1; }
.price-range-divider { color: var(--text-secondary); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.toggle-row:last-child { border-bottom: none; }

.toggle-label {
  font-size: 15px;
}

.toggle-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* ── Agent Dashboard ────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

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

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-icon {
  margin-bottom: 8px;
  color: var(--primary);
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.client-card:active { transform: scale(0.98); border-color: var(--primary-border); }

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 600; font-size: 15px; }
.client-meta { font-size: 13px; color: var(--text-secondary); }

/* ── Listing Agent Dashboard ────────────────────────── */
.dashboard-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.dashboard-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 12px;
}

.my-listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-listing-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.my-listing-card:active { transform: scale(0.98); border-color: var(--primary-border); }

.my-listing-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface-alt);
}

.my-listing-info { padding: 16px; }

.my-listing-price {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}

.my-listing-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.my-listing-stats {
  display: flex;
  gap: 16px;
}

.my-listing-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.my-listing-stat svg { width: 14px; height: 14px; }

/* ── Listing Creation Form ──────────────────────────── */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.photo-upload {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
  position: relative;
}

.photo-slot:hover { border-color: var(--primary); }

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}


/* ── Agent Stats Row ────────────────────────────────── */
.agent-stats-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px 4px;
}

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

.agent-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.agent-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}


/* ── Notification Enhancements ─────────────────────── */
.notification-listing-context {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notification-listing-context svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Agent Profile Stats ───────────────────────────── */
.agent-profile-stats {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.agent-profile-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.agent-profile-stat + .agent-profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.agent-profile-stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.agent-profile-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }


/* ── Buyer Intelligence ─────────────────────────────── */
.bi-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bi-filter-bar::-webkit-scrollbar { display: none; }

.bi-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-body);
  min-height: 34px;
}

.bi-filter-chip.active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

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

.bi-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.bi-avatar-anon {
  background: none;
  border: 2px solid currentColor;
}

.bi-anon-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bi-anon-notice i { flex-shrink: 0; margin-top: 1px; color: var(--primary); }

/* Listing Activity Summary */
.activity-property-header { padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.activity-property-address { color: var(--text); font-size: 18px; font-weight: 700; }
.activity-property-details { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.activity-period-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.activity-period-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.period-card-title { color: var(--text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.period-stats { display: flex; justify-content: space-around; }
.period-stat { text-align: center; }
.period-stat-value { display: block; color: var(--primary); font-size: 24px; font-weight: 700; }
.period-stat-label { display: block; color: var(--text-secondary); font-size: 11px; margin-top: 2px; }
.activity-section { margin-bottom: 20px; }
.activity-section-title { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.activity-breakdown { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label { color: var(--text-secondary); font-size: 14px; }
.breakdown-value { color: var(--text); font-size: 14px; font-weight: 600; }

/* Grouped listings under anonymous buyer card */
.buyer-card-listings { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.listings-group-header { color: var(--text-secondary); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.listings-group-items { display: flex; flex-direction: column; gap: 4px; }
.listings-group-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg); border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.listings-group-item:hover { background: var(--surface-alt); }
.listing-item-address { color: var(--text); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bi-card-info { flex: 1; min-width: 0; }
.bi-name { font-weight: 600; font-size: 15px; }
.bi-budget { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

.bi-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.bi-badge-green {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.bi-badge-gray {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.bi-lead-bar { margin-bottom: 10px; }

.bi-lead-label {
  font-size: 12px;
  font-weight: 700;
}

.bi-bar-track {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.bi-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.bi-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.bi-signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 6px;
}

.bi-signal svg { width: 12px; height: 12px; }

.bi-signal-hot {
  background: var(--primary-bg);
  color: var(--primary);
}

.bi-active {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.bi-msg-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 8px;
  margin-top: 4px;
  min-height: 36px;
}

.bi-msg-btn:active { opacity: 0.7; }

.bi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.bi-empty svg { opacity: 0.4; }

.bi-skeleton { padding: 4px 0; }


/* ── Market Pulse ───────────────────────────────────── */
.pulse-totals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.pulse-total-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.pulse-total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  font-family: 'Outfit', sans-serif;
}

.pulse-total-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-section {
  padding: 0 16px 24px;
}

.pulse-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pulse-section-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pulse-demand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pulse-demand-card {
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pulse-demand-card:hover {
  border-color: var(--primary);
}

.pulse-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pulse-card-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.pulse-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-secondary);
}

.pulse-card-info {
  flex: 1;
  min-width: 0;
}

.pulse-card-address {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-card-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pulse-card-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.pulse-demand-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pulse-card-bar-track {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pulse-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.pulse-card-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Heatmap */
.pulse-heatmap-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulse-heatmap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.pulse-heatmap-area {
  flex: 1;
  min-width: 0;
}

.pulse-heatmap-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-heatmap-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.pulse-heatmap-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-heatmap-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pulse-heatmap-demand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  font-size: 13px;
  font-weight: 700;
}

.pulse-heatmap-bar-track {
  flex: 1;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.pulse-heatmap-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}


/* ── Notification Priority System ──────────────────── */
.notif-filters {
  display: flex;
  gap: 8px;
}

.notif-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.notif-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.notif-filter-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

.notif-section-header {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.notif-section-critical { color: var(--danger); }
.notif-section-high { color: var(--warning); }
.notif-section-recent { color: var(--text-secondary); }

.notif-priority-critical {
  border-left: 3px solid var(--danger);
}

.notif-priority-high {
  border-left: 3px solid var(--warning);
}

.notif-priority-medium {
  border-left: 3px solid rgba(99, 102, 241, 0.3);
}

.notif-priority-low {
  border-left: 3px solid var(--border);
}

.notif-batch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
}

/* ── Lead Quality Signals ──────────────────────────── */
.lead-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.lead-signal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

.lead-signal-good {
  color: var(--success);
}

.lead-signal-unknown {
  color: var(--text-placeholder);
}


/* ── Image placeholder (broken/missing photos) ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--surface-alt, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.my-listing-image.img-placeholder { height: 160px; }
.listing-item-image.img-placeholder { width: 80px; height: 80px; min-height: auto; flex-shrink: 0; }

/* ── Add Listing section ── */
.add-listing-section {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.add-listing-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.add-listing-btn.primary {
  background: var(--primary);
  border: none;
  color: #ffffff;
}
.add-listing-btn.primary:hover { background: #5558e6; }
.add-listing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border, #2a2a4a);
  color: var(--text-secondary);
}
.add-listing-btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Find My Listing view ── */
.find-listing-content { padding: 0; }
.find-listing-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.address-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.address-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.address-input:focus { border-color: var(--primary); }
.address-input.half { width: calc(60% - 5px); }
.address-input.quarter { width: calc(40% - 5px); }
.search-listing-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 4px;
}
.search-listing-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Search results */
.search-results-header h3 { color: #ffffff; font-size: 16px; margin-bottom: 4px; }
.results-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 12px;
  margin-bottom: 10px;
}
.search-result-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg, #0f0f1a);
}
.search-result-photo img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-price { color: var(--success); font-size: 16px; font-weight: 700; }
.search-result-address {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-details { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.claim-btn, .import-claim-btn {
  padding: 8px 16px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.claim-btn:disabled, .import-claim-btn:disabled { opacity: 0.5; }
.already-claimed { color: var(--success); font-size: 13px; font-weight: 600; white-space: nowrap; }
.placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
}
.no-results {
  text-align: center;
  padding: 40px 24px;
}
.no-results-icon { font-size: 36px; margin-bottom: 12px; }
.no-results-title { color: #ffffff; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.no-results-subtitle { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   Demand Summary Card
   ═══════════════════════════════════════════════════════ */
.demand-summary {
  padding: 16px;
  background: linear-gradient(135deg, #1a1a3e 0%, #1e1e38 100%);
  border: 1px solid #2a2a4a;
  border-radius: 14px;
  margin-bottom: 16px;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.summary-title { color: #ffffff; font-size: 15px; font-weight: 600; }
.summary-period { color: #666; font-size: 12px; }
.summary-stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.summary-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.summary-stat-value { color: #ffffff; font-size: 22px; font-weight: 700; line-height: 1; }
.summary-stat-label { color: #9ca3af; font-size: 11px; white-space: nowrap; }
.summary-stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 4px;
}
.summary-stat-change.positive { color: #00d48a; background: rgba(0, 212, 138, 0.1); }
.summary-stat-change.negative { color: #ff4458; background: rgba(255, 68, 88, 0.1); }
.summary-stat-change.neutral { color: #9ca3af; }
.summary-stat-divider {
  width: 1px;
  height: 36px;
  background: #2a2a4a;
  flex-shrink: 0;
  align-self: center;
}
.summary-hottest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 42, 74, 0.5);
}
.hottest-icon { font-size: 16px; flex-shrink: 0; }
.hottest-text { color: #9ca3af; font-size: 13px; line-height: 1.3; }
.hottest-text strong { color: #ffffff; }

/* ═══════════════════════════════════════════════════════
   Empty State Card (No Listings)
   ═══════════════════════════════════════════════════════ */
.empty-state-card {
  margin: 24px 0;
  padding: 40px 24px;
  background: #1a1a2e;
  border: 1px dashed #2a2a4a;
  border-radius: 14px;
  text-align: center;
}
.empty-state-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state-title { color: #ffffff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state-text {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}
.empty-state-btn:hover { background: #5558e6; }



/* ═══════════════════════════════════════════════════════
   Agent Matching — "Find Your Agent"
   ═══════════════════════════════════════════════════════ */

/* Gate modal options */
.agent-gate-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: 8px;
  text-align: left;
  font-family: var(--font-body);
}

.agent-gate-option:hover {
  border-color: var(--primary);
}

.agent-gate-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-gate-option-text {
  flex: 1;
}

.agent-gate-option-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.agent-gate-option-desc {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.agent-gate-info-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 4px 0;
}

/* Agent matching form */
.agent-matching-view {
  padding-bottom: 40px;
}

.matching-intro {
  padding: 0 16px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.matching-form {
  padding: 0 16px;
}

.matching-subtitle {
  padding: 0 16px 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-section {
  margin-bottom: 20px;
}

.form-section-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Agent matching pill buttons */
.am-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.am-pill {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.am-pill.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* Agent match cards */
.agent-cards-list {
  padding: 0 16px;
}

.agent-match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.agent-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.agent-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-initials {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.agent-card-info {
  flex: 1;
  min-width: 0;
}

.agent-card-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.agent-card-brokerage {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

.agent-card-match {
  text-align: center;
  flex-shrink: 0;
}

.match-percent {
  font-size: 22px;
  font-weight: 700;
}

.match-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.agent-card-bio {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.agent-card-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.reason-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  color: var(--success);
  font-size: 12px;
}

.agent-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.agent-stat {
  text-align: center;
}

.agent-stat .stat-value {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.agent-stat .stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
}

.agent-card-license {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-bottom: 8px;
}

/* Education and disclaimers */
.agent-education-note {
  margin: 20px 16px;
  padding: 16px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
}

.education-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.education-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.education-point {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}

.education-point::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
}

.matching-disclaimer {
  margin: 16px;
  padding: 12px 16px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.matching-disclaimer a {
  color: var(--primary);
  text-decoration: none;
}

/* Dual agency modal education */
.edu-section {
  margin-bottom: 16px;
}

.edu-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-point {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}

.edu-point::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--text-tertiary);
}

/* Connection pending */
.connection-pending-view {
  padding: 60px 24px 40px;
  text-align: center;
}

.pending-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pending-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.pending-steps {
  text-align: left;
  max-width: 320px;
  margin: 0 auto 32px;
}

.pending-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-left: 12px;
}

.pending-step.completed {
  border-color: var(--success);
}

.pending-step.active {
  border-color: var(--primary);
}

.pending-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--text-secondary);
}

.pending-step-text {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Persistent agent banner */
.agent-connect-banner {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--primary);
  z-index: 50;
}

.banner-text {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
}

.banner-btn {
  padding: 6px 14px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}

.banner-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── Offer Status Badges ─────────────────────────────── */
.offer-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: capitalize;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.5;
}

.offer-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.offer-preview-card:hover {
  border-color: var(--primary);
}

/* Find Agent CTA (Profile) */
.find-agent-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
}
.find-agent-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.find-agent-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Feed Agent Prompt Banner */
.feed-agent-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.feed-agent-prompt:active {
  background: rgba(99, 102, 241, 0.15);
}

/* Header Role Switch Button */
.header-role-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary-bg);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-role-switch:active {
  background: var(--primary);
  color: white;
}

