/* ─────────────────────────────────────────────────────────
   Expert Network — Design System
   Accent: #A78BFA (purple)  •  Dark theme matching TA agents
   ───────────────────────────────────────────────────────── */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-input: #0F0F0F;
  --accent: #A78BFA;
  --accent-dim: rgba(167, 139, 250, 0.12);
  --accent-glow: rgba(167, 139, 250, 0.25);
  --accent-bright: #C4B5FD;
  --gold: #FFB800;
  --text: #F0F0F0;
  --text-muted: #999999;
  --text-dim: #555555;
  --border: #1E1E1E;
  --border-light: #2A2A2A;
  --success: #3FB950;
  --error: #F85149;
  --info: #60A5FA;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.header-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.header-links a:hover { color: var(--text-muted); }
.header-links a.active { color: var(--accent); }

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 32px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.hero-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.hero-search input::placeholder { color: var(--text-dim); }

.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* ── Filter Section ────────────────────────────────────── */
.filter-section {
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.filter-tabs {
  display: flex;
  gap: 4px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.filter-tab:hover { color: var(--text-muted); background: rgba(255,255,255,0.03); }

.filter-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(167, 139, 250, 0.2);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-pill:hover { color: var(--text-muted); border-color: var(--border-light); }

.filter-pill.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(167, 139, 250, 0.3);
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.active-filters-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.active-filter-tag .remove-tag {
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1;
}
.active-filter-tag .remove-tag:hover { opacity: 1; }

.clear-filters {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
}
.clear-filters:hover { color: var(--text-muted); }

/* ── Results ───────────────────────────────────────────── */
.results-section {
  padding: 0 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.results-sort select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
}

.results-sort select:focus { border-color: var(--accent); }

.results-header .filter-tabs {
  display: flex;
  gap: 4px;
}

/* ── Card Grid ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ── Expert Card ───────────────────────────────────────── */
.expert-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.expert-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(167, 139, 250, 0.05);
}

.expert-card-header {
  position: relative;
  padding: 20px 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.firm-card .expert-card-header {
  padding-top: 30px; /* room for the FIRM ribbon */
}

.expert-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(167,139,250,0.05));
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--accent);
}

.firm-card .expert-avatar {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(96,165,250,0.1));
}

.expert-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.expert-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.expert-location {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.verified-badge svg {
  width: 10px;
  height: 10px;
}

/* Availability */
.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.availability-dot.available { background: var(--success); box-shadow: 0 0 6px rgba(63,185,80,0.4); }
.availability-dot.limited { background: var(--gold); box-shadow: 0 0 6px rgba(255,184,0,0.4); }
.availability-dot.unavailable { background: var(--error); }

/* Card Body */
.expert-card-body {
  padding: 14px 16px 16px;
}

.expert-bio {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.expert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.expert-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.expert-tag.industry {
  background: rgba(96, 165, 250, 0.08);
  color: var(--info);
  border-color: rgba(96, 165, 250, 0.15);
}

/* Card Footer */
.expert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.expert-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.expert-rating .stars {
  display: flex;
  gap: 1px;
}

.expert-rating .star { color: var(--gold); font-size: 11px; }
.expert-rating .star.empty { color: var(--border-light); }

.expert-rating .count {
  font-size: 11px;
  color: var(--text-dim);
}

.expert-engagement {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.expert-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Firm Card Extras ──────────────────────────────────── */
.firm-card {
  background: #131520;
  border-color: rgba(96, 165, 250, 0.15);
}

.firm-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.firm-badge-ribbon {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0 0 6px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--info);
  position: absolute;
  top: 0;
  left: 20px;
}

.firm-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 4px;
}

.firm-team-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--info);
}

.firm-team-size svg {
  color: var(--info);
  opacity: 0.7;
}

.firm-team {
  display: flex;
  gap: -8px;
  margin-top: 8px;
}

.firm-team-member {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(167,139,250,0.1));
  border: 2px solid var(--bg-card);
  color: var(--accent);
  margin-left: -6px;
}

.firm-team-member:first-child { margin-left: 0; }

/* ── Profile Modal ─────────────────────────────────────── */
.profile-modal { position: fixed; inset: 0; z-index: 200; }

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.profile-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 520px;
  max-width: 100vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 32px;
}

.profile-modal.open .profile-panel {
  transform: translateX(0);
}

.profile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  font-size: 18px;
}

.profile-close:hover { color: var(--text-muted); border-color: var(--border-light); }

.profile-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-right: 40px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(167,139,250,0.08));
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--accent);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
}

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

.profile-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.profile-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.profile-highlight-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.profile-highlight-icon svg { color: var(--accent); }

.profile-highlight-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-tag {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 400;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.profile-tag.industry {
  background: rgba(96, 165, 250, 0.08);
  color: var(--info);
  border-color: rgba(96, 165, 250, 0.12);
}

.profile-tag.engagement {
  background: rgba(63, 185, 80, 0.08);
  color: var(--success);
  border-color: rgba(63, 185, 80, 0.12);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-info-item {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.profile-info-value {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.profile-cta p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ── Contact Form (in profile panel) ─────────────────── */
.contact-form-container {
  padding-top: 8px;
}

.contact-form-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 20px;
}

.contact-form-back:hover { color: var(--accent); }

.contact-form-back svg { flex-shrink: 0; }

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-required { color: var(--accent); }

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-dim); }

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.contact-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.contact-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-checkbox-mark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.contact-checkbox input:checked + .contact-checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-checkbox input:checked + .contact-checkbox-mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #0A0A0A;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.contact-checkbox-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-checkbox-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 400;
}

.contact-form-note {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

/* Contact Success State */
.contact-success {
  text-align: center;
  padding: 60px 20px 40px;
}

.contact-success-icon {
  margin-bottom: 20px;
}

.contact-success-icon svg {
  color: var(--success);
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-success p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-success p strong {
  color: var(--accent);
  font-weight: 500;
}

.contact-success-detail {
  margin-top: 12px;
  font-size: 13px !important;
  color: var(--text-dim) !important;
}

/* ── Join CTA Section ──────────────────────────────────── */
.join-cta {
  padding: 80px 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.join-cta h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.join-cta > .join-cta-content > p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.join-cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto 36px;
  text-align: left;
}

.join-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.join-benefit svg { color: var(--success); flex-shrink: 0; }

.join-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Can't Find Section ────────────────────────────────── */
.cant-find-section {
  padding: 48px 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cant-find-content {
  padding: 36px 40px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.015);
}

.cant-find-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.cant-find-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cant-find-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.cant-find-btn:hover {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 14px; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  width: 100%;
  cursor: pointer;
}

.btn-contact:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Wizard Modal ──────────────────────────────────────── */
.wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.wizard-container {
  position: relative;
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.wizard-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  font-size: 18px;
  transition: all 0.2s;
}

.wizard-close:hover { color: var(--text-muted); border-color: var(--border-light); }

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.wizard-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all 0.3s;
}

.wizard-step-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.wizard-step-dot.done { background: var(--success); }

.wizard-step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

.wizard-step-line.done { background: var(--success); }

.wizard-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.wizard-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.wizard-form { display: flex; flex-direction: column; gap: 18px; }

.wizard-field { display: flex; flex-direction: column; gap: 6px; }

.wizard-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wizard-field input,
.wizard-field textarea,
.wizard-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wizard-field input::placeholder,
.wizard-field textarea::placeholder { color: var(--text-dim); }

.wizard-field input:focus,
.wizard-field textarea:focus,
.wizard-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.wizard-multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-multi-option {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-multi-option:hover { color: var(--text-muted); border-color: var(--border-light); }

.wizard-multi-option.selected {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(167, 139, 250, 0.3);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.wizard-back {
  padding: 10px 20px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.wizard-back:hover { color: var(--text-muted); }

/* Wizard confirmation */
.wizard-confirmation {
  text-align: center;
  padding: 20px 0;
}

.wizard-confirmation svg {
  color: var(--success);
  margin-bottom: 16px;
}

.wizard-confirmation h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.wizard-confirmation p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-dim);
}

.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 13px; font-weight: 300; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover { color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-grid .expert-card {
  animation: fadeInUp 0.4s ease-out backwards;
}

.card-grid .expert-card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .expert-card:nth-child(2) { animation-delay: 0.1s; }
.card-grid .expert-card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .expert-card:nth-child(4) { animation-delay: 0.2s; }
.card-grid .expert-card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .expert-card:nth-child(6) { animation-delay: 0.3s; }
.card-grid .expert-card:nth-child(7) { animation-delay: 0.35s; }
.card-grid .expert-card:nth-child(8) { animation-delay: 0.4s; }
.card-grid .expert-card:nth-child(9) { animation-delay: 0.45s; }

/* ── Filter Bar (Advanced) ──────────────────────────────── */
.filter-bar-advanced {
  padding: 0 24px;
  margin-top: 16px;
}

.filter-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  min-width: 60px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill.active {
  background: rgba(167, 139, 250, 0.15);
  border-color: #A78BFA;
  color: #A78BFA;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.filter-select {
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-toggle input { accent-color: #A78BFA; }

/* ── Tier Badges ───────────────────────────────────────── */
.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-principal {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.tier-director {
  background: rgba(167, 139, 250, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.tier-associate {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.expert-card-tier {
  padding: 8px 12px 0;
}

.expert-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.expert-card-rating .stars { display: flex; gap: 1px; }

.expert-pricing-preview {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Profile: Testimonials ─────────────────────────────── */
.profile-testimonial {
  padding: 14px 16px;
  border-left: 2px solid #A78BFA;
  margin-bottom: 12px;
  background: rgba(167, 139, 250, 0.04);
  border-radius: 0 6px 6px 0;
}

.testimonial-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.testimonial-author {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.testimonial-stars { font-size: 11px; }

/* ── Profile: Case Studies ─────────────────────────────── */
.profile-case-study {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}

.case-study-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.case-study-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.case-study-outcome {
  font-size: 12px;
  color: #A78BFA;
  line-height: 1.4;
}

/* ── Profile: Pricing Grid ─────────────────────────────── */
.profile-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.profile-pricing-item {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.pricing-type {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pricing-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.profile-avail-note {
  font-size: 11px;
  color: #3FB950;
  margin-top: 4px;
  font-style: italic;
}

/* ── Stars (shared) ────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 1px;
}

.star {
  color: #FFB800;
  font-size: 13px;
}

.star.empty {
  color: var(--border);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .header-links { display: none; }

  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 36px; }

  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 24px; }

  .filter-section { padding: 0 16px; }
  .filter-bar { flex-direction: column; gap: 16px; padding: 16px; }
  .filter-bar-row { flex-direction: column; gap: 8px; }
  .filter-controls { margin-left: 0; flex-wrap: wrap; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

  .results-section { padding: 0 16px 48px; }
  .card-grid { grid-template-columns: 1fr; }

  .profile-panel { width: 100%; }

  .join-cta { padding: 48px 16px; }
  .join-cta h2 { font-size: 28px; }
  .join-cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .results-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── How It Works Section ─────────────────────────────── */
.how-it-works {
  padding: 64px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hiw-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.hiw-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.hiw-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  flex-shrink: 0;
}

.hiw-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #0A0A0A;
  background: var(--accent);
  margin-bottom: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hiw-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.hiw-step-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 140px;
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--border-light);
  flex-shrink: 0;
}

.hiw-compensation-callout {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-lg);
  text-align: left;
  max-width: 640px;
}

.hiw-callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  flex-shrink: 0;
  color: var(--accent);
}

.hiw-callout-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hiw-callout-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hiw-callout-text span {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Expert Stories Section ───────────────────────────── */
.expert-stories {
  padding: 48px 32px 64px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.es-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.es-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.es-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.es-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s ease;
}

.es-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.es-quote {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
  min-height: 72px;
}

.es-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.es-stars .star {
  color: var(--gold);
  font-size: 14px;
}

.es-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.es-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.es-stat {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.es-stat strong {
  color: var(--text-muted);
  font-weight: 600;
}

.es-stat-divider {
  width: 1px;
  height: 14px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* ── How It Works + Expert Stories Responsive ─────────── */
@media (max-width: 768px) {
  .hiw-pipeline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hiw-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .hiw-step {
    width: auto;
  }

  .hiw-step-desc {
    max-width: 240px;
  }

  .hiw-compensation-callout {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .es-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works { padding: 48px 16px 32px; }
  .expert-stories { padding: 32px 16px 48px; }

  .hiw-title,
  .es-title {
    font-size: 28px;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
