/* ============================================================
   DONOR PROFILE PAGE
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.dp-hero {
  background: linear-gradient(135deg, #1a3a0f 0%, #2a5c18 55%, #368420 100%);
  padding: 100px 0 0;
  position: relative;
  overflow: visible;
}
.dp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dp-hero__inner {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 28px;
  position: relative;
}
.dp-hero__avatar-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  background: #2a5c18;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.dp-hero__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dp-hero__avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #2f7a1d, #4faa29);
}
.dp-hero__info {
  flex: 1;
  min-width: 0;
  padding-bottom: 28px;
}
.dp-hero__name {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dp-hero__activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1a3a0f;
  background: #a8e06b;
  padding: 5px 12px;
  border-radius: 50px;
  vertical-align: middle;
}
.dp-hero__activity-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d7019;
}
.dp-hero__activity-badge--inactive {
  color: #6b4a1f;
  background: #f0d9a8;
}
.dp-hero__activity-badge--inactive::before {
  background: #b5651d;
}
.dp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dp-hero__meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
}
.dp-hero__meta svg { flex-shrink: 0; opacity: 0.8; }
.dp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 28px;
  flex-shrink: 0;
}
.dp-hero__views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}
.dp-hero__protect-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.dp-hero__protect-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.dp-hero__tab-bar {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 2;
}
.dp-hero__tab {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}
.dp-hero__tab.active,
.dp-hero__tab:hover {
  color: #fff;
  border-bottom-color: #7ed44a;
}

/* ── Stats bar ─────────────────────────────────────────────── */
.dp-stats-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dp-stats-bar__inner {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
}
.dp-stat {
  flex: 1 1 0;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid #f0f0f0;
  min-width: 0;
}
.dp-stat:last-child { border-right: none; }
.dp-stat__value {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  font-family: Outfit, sans-serif;
}
.dp-stat__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin-top: 4px;
}

/* ── Main layout ───────────────────────────────────────────── */
.dp-body {
  background: #f7f8fa;
  padding: 36px 0 60px;
}
.dp-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.dp-main   { flex: 1 1 0; min-width: 0; }
.dp-sidebar { flex: 0 0 320px; width: 320px; }

/* ── Impact section (full width) ─────────────────────────────── */
.dp-impact {
  margin-bottom: 36px;
}
.dp-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 20px;
}
.dp-impact-grid .dp-chart-card {
  margin-bottom: 0;
}

/* ── Section header ────────────────────────────────────────── */
.dp-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dp-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

/* ── Beneficiary grid ──────────────────────────────────────── */
.dp-beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.dp-beneficiary-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #efefef;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.dp-beneficiary-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #2d7019, #5ab82e);
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.dp-beneficiary-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.dp-beneficiary-card__success {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(90deg, #1f7a3d, #2fa657);
  padding: 4px 9px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.dp-beneficiary-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}
.dp-beneficiary-card__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2f7a1d, #4faa29);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}
.dp-beneficiary-card__img-initial {
  font-size: 32px;
  font-weight: 700;
  font-family: Outfit, sans-serif;
  line-height: 1;
}
.dp-beneficiary-card__body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dp-beneficiary-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dp-beneficiary-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dp-beneficiary-card__type {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  padding: 2px 7px;
  border-radius: 50px;
  white-space: nowrap;
}
.dp-beneficiary-card__type--entrepreneur {
  background: #eef3e8;
  color: #4F6F52;
  border: 1px solid #cfe0c3;
}
.dp-beneficiary-card__type--student {
  background: #eef2f7;
  color: #3a5a78;
  border: 1px solid #c9d8e8;
}
.dp-beneficiary-card__business {
  font-size: 12px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-beneficiary-card__project {
  font-size: 11.5px;
  color: #888;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-beneficiary-card__location {
  font-size: 11.5px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.dp-beneficiary-card__donated {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.dp-beneficiary-card__amount-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dp-beneficiary-card__amount {
  font-size: 15px;
  font-weight: 700;
  color: #368420;
  font-family: Outfit, sans-serif;
}
.dp-beneficiary-card__amount-sub {
  font-size: 13px;
  font-weight: 400;
  color: #777;
}
.dp-beneficiary-card__pct {
  font-size: 11px;
  font-weight: 600;
  background: #f0f9eb;
  color: #2a7020;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid #c8e6b8;
}
.dp-beneficiary-card__pct--partial {
  background: #fdf6e3;
  color: #8a6d1f;
  border-color: #efd99b;
}
.dp-beneficiary-card__bar {
  margin-top: 8px;
  height: 4px;
  background: #e4f0dc;
  border-radius: 100px;
  overflow: hidden;
}
.dp-beneficiary-card__bar-fill {
  height: 4px;
  background: linear-gradient(90deg, #2d7019, #5ab82e);
  border-radius: 100px;
}
.dp-beneficiary-card__bar-fill--partial {
  background: linear-gradient(90deg, #F2B705, #FFD60A);
}
/* Donor's own contribution (separate concept/color from project-level funding status) */
.dp-beneficiary-card__pct--contrib-partial {
  background: #fbf1da;
  color: #8a6a1f;
  border-color: #e8cf8e;
}
.dp-beneficiary-card__bar-fill--contrib-partial {
  background: linear-gradient(90deg, #B8860B, #D4A017);
}
.dp-beneficiary-card__contribution {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e4f0dc;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.dp-beneficiary-card__contribution-left {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.dp-beneficiary-card__contribution-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #B8860B;
}
.dp-beneficiary-card__contribution-amount {
  font-size: 11px;
  font-weight: 700;
  color: #8a6a1f;
  font-family: Outfit, sans-serif;
}
.dp-beneficiary-card__contribution-date {
  font-size: 10px;
  color: #bbb;
  flex-shrink: 0;
}

/* ── Chart cards ───────────────────────────────────────────── */
.dp-chart-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #efefef;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 18px;
}
.dp-chart-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.dp-chart-card canvas {
  max-width: 100%;
}

/* ── Pagination ─────────────────────────────────────────────── */
.dp-pagination {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.dp-pagination .pagination { margin: 0; }
.dp-pagination .page-item .page-link {
  border-radius: 8px;
  margin: 0 2px;
  border-color: #e0e0e0;
  color: #444;
  font-size: 13px;
}
.dp-pagination .page-item.active .page-link {
  background: #368420;
  border-color: #368420;
  color: #fff;
}

/* ── Locked profile ────────────────────────────────────────── */
.dp-locked {
  padding: 60px 0 80px;
  text-align: center;
}
.dp-locked__scene {
  position: relative;
  width: 300px;
  height: 320px;
  margin: 0 auto 36px;
}
/* Floating shield (same as bank page) */
.dp-locked__shield {
  width: 220px;
  height: 260px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.25));
  animation: dp-float 4s ease-in-out infinite;
}
@keyframes dp-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateY(-10px); }
}
/* Floating coins */
.dp-locked__coin {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.dp-locked__coin--1 {
  width: 56px; height: 56px;
  top: 30px; right: 0;
  animation: dp-bob1 3.5s ease-in-out infinite;
}
.dp-locked__coin--2 {
  width: 44px; height: 44px;
  bottom: 50px; left: 4px;
  animation: dp-bob2 4.2s ease-in-out infinite;
}
@keyframes dp-bob1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(6deg); }
}
@keyframes dp-bob2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(8px) rotate(-5deg); }
}
/* Badge */
.dp-locked__badge {
  position: absolute;
  bottom: 20px; right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #a8e06b;
  color: #0c2b09;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  animation: dp-bob2 3.8s ease-in-out infinite;
}
/* Decorative rings */
.dp-locked__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,224,107,0.15);
  pointer-events: none;
}
.dp-locked__ring--1 {
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: dp-spin 18s linear infinite;
}
.dp-locked__ring--2 {
  width: 320px; height: 320px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: dp-spin 28s linear infinite reverse;
}
@keyframes dp-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.dp-locked__title {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}
.dp-locked__sub {
  font-size: 15px;
  color: #666;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.dp-locked__unprotect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2f7a1d, #4faa29);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(54,132,32,0.3);
  transition: filter 0.18s ease, transform 0.14s ease;
}
.dp-locked__unprotect:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Beneficiary status stats ──────────────────────────────── */
.dp-beneficiary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.dp-beneficiary-stat {
  flex: 1 1 130px;
  min-width: 0;
  background: #fff;
  border: 1px solid #efefef;
  border-left: 4px solid #5B8C3A;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dp-beneficiary-stat:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}
.dp-beneficiary-stat--active {
  border: 1px solid #5B8C3A;
  border-left-width: 4px;
  background: #f6faf2;
}
.dp-beneficiary-stat--partial.dp-beneficiary-stat--active { border-color: #E6B800; background: #fdf8e3; }
.dp-beneficiary-stat--partial .dp-beneficiary-stat__value { color: #b38f00; }
.dp-beneficiary-stat--started.dp-beneficiary-stat--active { border-color: #3F6E4F; background: #f1f6f3; }
.dp-beneficiary-stat--repaid.dp-beneficiary-stat--active { border-color: #2d7019; background: #f0f9eb; }

/* ── Your Contribution stats (separate color section) ─────────── */
.dp-contribution-stats__title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5b6ea8;
  margin: 0 0 8px;
}
.dp-beneficiary-stats--contribution .dp-beneficiary-stat {
  border-left-color: #5b6ea8;
}
.dp-beneficiary-stat--contrib-partial { border-left-color: #B8860B; }
.dp-beneficiary-stat--contrib-full { border-left-color: #2c5d92; }
.dp-beneficiary-stat--contrib-partial .dp-beneficiary-stat__value {
  color: #8a6a1f;
}
.dp-beneficiary-stat--contrib-full .dp-beneficiary-stat__value {
  color: #2c3a6b;
}
.dp-beneficiary-stat--contrib-partial.dp-beneficiary-stat--active { border-color: #B8860B; background: #fbf1da; }
.dp-beneficiary-stat--contrib-full.dp-beneficiary-stat--active { border-color: #2c5d92; background: #eaf1fb; }
/* ── Impact map ────────────────────────────────────────────── */
.dp-map-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 18px;
  margin-bottom: 18px;
}
.dp-map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dp-map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dp-map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #666;
}
.dp-map-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dp-map-legend__dot--partial { background: #E6B800; }
.dp-map-legend__dot--repaying { background: #3F6E4F; }
.dp-map-legend__dot--repaid { background: #2d7019; }
#dp-impact-map {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2eb;
  z-index: 1;
}
.dp-map-pin {
  position: relative;
}
.dp-map-pin__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: Outfit, sans-serif;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  position: absolute;
  top: 0;
  left: 1px;
}
.dp-map-pin__tail {
  position: absolute;
  top: 24px;
  left: 9px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.15));
}
.dp-map-pin__logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.dp-map-pin__dot--photo {
  padding: 0;
  background: #fff;
  overflow: hidden;
  border: 2px solid #fff;
}
.dp-map-pin__dot--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.dp-map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}
.dp-map-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Outfit, sans-serif;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.dp-map-popup {
  min-width: 220px;
  display: flex;
  gap: 10px;
}
.dp-map-popup__img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}
.dp-map-popup__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2f7a1d, #4faa29);
  color: rgba(255,255,255,0.9);
  font-size: 20px;
  font-weight: 700;
  font-family: Outfit, sans-serif;
}
.dp-map-popup__body {
  min-width: 0;
  flex: 1;
}
.dp-map-popup__status {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  padding: 2px 7px;
  border-radius: 50px;
  margin-bottom: 3px;
}
.dp-map-popup__status--partial { background: #fdf6d3; color: #8a6d00; }
.dp-map-popup__status--fully_funded { background: #eaf1fb; color: #2c5d92; }
.dp-map-popup__status--repaying { background: #eef3e8; color: #3F6E4F; }
.dp-map-popup__status--fully_repaid { background: #f0f9eb; color: #2a7020; }
.dp-map-popup__name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1px;
}
.dp-map-popup__business {
  font-size: 11px;
  color: #777;
  margin: 0 0 4px;
}
.dp-map-popup__meta {
  display: flex;
  gap: 8px;
  font-size: 10.5px;
  color: #999;
  margin: 0 0 6px;
}
.dp-map-popup__amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.dp-map-popup__amount {
  font-size: 13px;
  font-weight: 700;
  color: #368420;
  font-family: Outfit, sans-serif;
}
.dp-map-popup__amount small {
  font-size: 10.5px;
  font-weight: 400;
  color: #888;
}
.dp-map-popup__pct {
  font-size: 11px;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
}
.dp-map-popup__bar {
  margin-top: 5px;
  height: 4px;
  background: #e4e4e4;
  border-radius: 100px;
  overflow: hidden;
}
.dp-map-popup__bar-fill {
  height: 4px;
  border-radius: 100px;
}
.dp-map-popup__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.dp-map-popup__link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #2a7020;
  text-decoration: none;
}
.dp-map-popup__link:hover {
  text-decoration: underline;
}
.dp-map-popup__actions .dp-map-popup__drive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 400;
  color: #2d7019;
  background: #fff;
  border: 1px solid #cfe0c3;
  padding: 4px 9px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dp-map-popup__actions .dp-map-popup__drive:hover {
  color: #fff;
  background: linear-gradient(90deg, #2d7019, #5ab82e);
  border-color: transparent;
  text-decoration: none;
}
.dp-beneficiary-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  font-family: Outfit, sans-serif;
}
.dp-beneficiary-stat__label {
  font-size: 12px;
  color: #777;
}
.dp-beneficiary-stat--partial { border-left-color: #E6B800; }
.dp-beneficiary-stat--started { border-left-color: #3F6E4F; }
.dp-beneficiary-stat--repaid { border-left-color: #2d7019; }

/* ── Filter bar ─────────────────────────────────────────────── */
.dp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.dp-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 130px;
  min-width: 0;
}
.dp-filter-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #8a9a85;
  margin: 0;
}
.dp-filter-field select {
  border: 1px solid #dfe8da;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1a1a1a;
  background: #f8faf6;
  width: 100%;
  min-width: 0;
}
.dp-filter-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.dp-filter-search input[type="search"] {
  width: 100%;
  border: 1px solid #dfe8da;
  border-radius: 8px;
  padding: 7px 34px 7px 10px;
  font-size: 13px;
  color: #1a1a1a;
  background: #f8faf6;
  -webkit-appearance: none;
}
.dp-filter-search input[type="search"]:focus {
  outline: none;
  border-color: #5B8C3A;
}
.dp-filter-search__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  color: #8a9a85;
  cursor: pointer;
}
.dp-filter-search__btn:hover {
  color: #5B8C3A;
}
.dp-filter-field--reset {
  justify-content: flex-end;
}
.dp-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a6d1f;
  background: #fdf6e3;
  border: 1px solid #efd99b;
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.dp-filter-reset:hover {
  background: #fbeec9;
  color: #8a6d1f;
  text-decoration: none;
}
.dp-filter-field select:focus {
  outline: none;
  border-color: #5B8C3A;
}

/* ── Owner panel ────────────────────────────────────────────── */
.dp-owner-panel {
  background: linear-gradient(160deg, #f4f9ef, #eef5e6);
  border-color: #dde9d3;
}
.dp-owner-balance {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dde9d3;
}
.dp-owner-balance__label {
  font-size: 12px;
  color: #5d6e57;
}
.dp-owner-balance__value {
  font-size: 24px;
  font-weight: 800;
  color: #2d7019;
  font-family: Outfit, sans-serif;
}
.dp-owner-panel__dashboard-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2d7019;
  text-decoration: none;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dde9d3;
}
.dp-owner-panel__dashboard-link:hover {
  color: #1a4a0e;
  text-decoration: none;
}
.dp-owner-panel__toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dp-owner-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dp-owner-toggle span {
  font-size: 13px;
  color: #333;
}
.dp-owner-panel .form-check-input {
  width: 2.75rem;
  height: 1.4rem;
  cursor: pointer;
  border-color: rgba(0, 0, 0, 0.2);
}
.dp-owner-panel .form-check-input:focus {
  border-color: #368420;
  box-shadow: 0 0 0 0.2rem rgba(54, 132, 32, 0.15);
}
.dp-owner-panel .form-check-input:checked {
  background-color: #368420;
  border-color: #368420;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .dp-layout { flex-direction: column; }
  .dp-sidebar { width: 100%; flex: none; }
  .dp-stats-bar__inner { flex-wrap: wrap; }
  .dp-stat { flex: 1 1 40%; }
  .dp-impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .dp-hero__inner { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .dp-hero__actions { padding-bottom: 0; width: 100%; }
  .dp-hero__avatar-wrap { width: 90px; height: 90px; }
  .dp-beneficiary-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .dp-filter-bar { flex-direction: column; align-items: stretch; }
  .dp-filter-field select { min-width: 0; width: 100%; }
  .dp-filter-search { min-width: 0; width: 100%; }
  .dp-beneficiary-stat { flex: 1 1 45%; }
  .dp-stat { flex: 1 1 45%; }
  .dp-hero__tab { padding: 10px 14px; font-size: 13px; }
  .dp-owner-panel__dashboard-link,
  .dp-owner-toggle { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .dp-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #f0f0f0; }
  .dp-beneficiary-stat { flex: 1 1 100%; }
  .dp-beneficiary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dp-hero__name { font-size: 1.5rem; gap: 8px; }
  .dp-hero__activity-badge { font-size: 10px; padding: 4px 10px; }
  .dp-chart-card { padding: 14px; }
}
@media (max-width: 360px) {
  .dp-beneficiary-grid { grid-template-columns: 1fr; }
}
