/* ── Our Members page ───────────────────────────────────────────────────── */

/* Hero */
.mem-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
}
.mem-hero-content {
  position: relative; z-index: 1;
  text-align: center; padding-block: 4rem;
  max-width: 700px; margin-inline: auto;
}
.mem-hero-content h1 { color: var(--white); margin-bottom: .875rem; }
.mem-hero-content p { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.75; }

/* Summary stats */
.mem-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.mem-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.mem-stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: .35rem;
}
.mem-stat-lbl {
  font-size: .82rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* Chart section */
.chart-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.chart-section h2 {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 1.75rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--gray-100);
}

/* Bar chart */
.country-bar {
  display: grid;
  grid-template-columns: 180px 1fr 56px;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.country-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  background: var(--gray-100);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  transition: width .8s cubic-bezier(.16,1,.3,1);
}
.bar-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.country-count {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-align: right;
}

/* Empty state */
.mem-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}
.mem-empty svg {
  width: 56px; height: 56px;
  stroke: var(--gray-300);
  margin-bottom: 1rem;
}

/* CTA */
.mem-cta {
  background: var(--navy-dark);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--white);
}
.mem-cta h2 { color: var(--white); margin-bottom: .875rem; }
.mem-cta p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75; max-width: 560px; margin: 0 auto 2rem; }

/* Loading */
.mem-loading {
  display: flex; justify-content: center; align-items: center;
  padding: 4rem; flex-direction: column; gap: 1rem;
}
.mem-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 640px) {
  .mem-stats-row { grid-template-columns: 1fr 1fr; }
  .country-bar { grid-template-columns: 120px 1fr 40px; gap: .6rem; }
  .country-name { font-size: .78rem; }
}

@media (max-width: 420px) {
  .mem-stats-row { grid-template-columns: 1fr; max-width: 280px; }
  .mem-stat-card { padding: 1.25rem 1rem; }
  .mem-stat-val { font-size: 2rem; }
  .country-bar { grid-template-columns: 90px 1fr 36px; gap: .4rem; }
  .country-name { font-size: .72rem; }
  .country-count { font-size: .78rem; }
}
