.btn-sm {
  min-height: 36px;
  font-size: .85rem;
}

.page-hero {
  background:
    linear-gradient(rgba(10, 18, 12, 0.68), rgba(10, 18, 12, 0.68)),
    url('https://images.unsplash.com/photo-1593111774240-d529f12cf4bb?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
  padding: 3rem 0 5.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.055em;
  margin-bottom: .85rem;
  max-width: 900px;
}

.page-hero p {
  color: rgba(255,255,255,.92);
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.surface-card,
.agent-card,
.filter-card,
.feature-card,
.lead-card,
.profile-panel,
.resource-card,
.ad-card {
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius);
  box-shadow: var(--lv-shadow);
}

.agent-search-shell {
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}

.hero-eyebrow {
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
}

.summary-stat {
  border: 1px solid var(--lv-border);
  border-radius: 16px;
  background: var(--lv-surface-soft);
  padding: .9rem 1rem;
  height: 100%;
}

.summary-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--lv-text);
  line-height: 1.1;
}

.summary-stat span {
  color: var(--lv-muted);
  font-size: .82rem;
  font-weight: 700;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #cbdccd;
  background: #edf4ef;
  color: var(--lv-primary-dark);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.chip-muted {
  background: #fff;
  color: var(--lv-muted);
}

.layout-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.filter-stack {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.filter-section {
  border-top: 1px solid var(--lv-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.filter-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.filter-heading {
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--lv-text);
}

.check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
  color: var(--lv-muted);
  font-weight: 600;
  font-size: .92rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--lv-primary);
}

.agent-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.agent-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lv-shadow-strong);
}

.agent-photo {
  min-height: 180px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.agent-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(255,255,255,.96);
  color: var(--lv-primary-dark);
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.agent-badge--sponsored {
  top: 2.55rem;
  background: #1f3b2c;
  color: #fff;
}

.agent-card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agent-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .15rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.agent-company {
  color: var(--lv-muted);
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .55rem;
}

.agent-specialty {
  color: var(--lv-text);
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .65rem;
}

.agent-meta {
  color: var(--lv-muted);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.agent-focus {
  color: var(--lv-primary-dark);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

.agent-actions .btn {
  min-height: 36px;
  padding: .4rem .85rem;
}

.profile-panel {
  background:
    radial-gradient(circle at top left, rgba(184, 138, 27, .12), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.profile-image {
  min-height: 420px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--lv-shadow-strong);
  border: 1px solid rgba(255,255,255,.5);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f3ec;
  color: var(--lv-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.gold-icon {
  background: #fff3cf;
  color: #7a6118;
}

.feature-card,
.resource-card {
  height: 100%;
}

.feature-card h3,
.resource-card h3,
.lead-card h3,
.ad-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .45rem;
}

.feature-card p,
.resource-card p,
.lead-card p,
.ad-card p {
  color: var(--lv-muted);
  font-size: .94rem;
  margin-bottom: 0;
}

.lead-card {
  background:
    linear-gradient(135deg, rgba(22, 90, 57, .96), rgba(16, 68, 40, .96)),
    url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1400&q=80') center/cover;
  color: #fff;
  overflow: hidden;
}

.lead-card p,
.lead-card .section-subtitle {
  color: rgba(255,255,255,.86);
}

.lead-card .form-label {
  color: #fff;
}

.lead-card .form-control,
.lead-card .form-select {
  border-color: rgba(255,255,255,.3);
}

.ad-card {
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

.sponsored-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  color: #7a6118;
  background: #fff3cf;
  border-radius: 999px;
  padding: .34rem .6rem;
  margin-bottom: .7rem;
}

.mobile-filter-btn {
  display: none;
}

@media (max-width: 991.98px) {
  .layout-shell {
    display: block;
  }

  .filter-stack {
    position: static;
    max-height: none;
    overflow: visible;
    display: none;
    margin-bottom: 1rem;
  }

  .filter-stack.show-mobile {
    display: block;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .profile-image {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 2.4rem 0 5rem;
  }

  .agent-toolbar {
    align-items: stretch;
  }

  .agent-toolbar .form-select {
    width: 100% !important;
  }
}
