.community-care-page-hero {
  background-image: linear-gradient(to bottom, rgba(20, 14, 32, 0.45), rgba(20, 14, 32, 0.82)), url('assets/colourfulBraids.jpg');
  background-size: cover;
  background-position: center;
}

.community-care-shell {
  padding-top: 40px;
  padding-bottom: 64px;
}

.community-care-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.community-care-summary {
  max-width: 420px;
}

.ccare-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.ccare-hero {
  background: linear-gradient(135deg, #fff1f6, #f3eeff);
  border: 1px solid #f0dff7;
  border-radius: 20px;
  padding: 36px 32px;
}

.ccare-hero-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #9A67EA;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ccare-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.ccare-hero-desc {
  font-size: 15.5px;
  color: #555;
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 580px;
}

.ccare-hero-tagline {
  display: inline-block;
  background: #fff;
  border: 1px solid #e8d5f0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  font-style: italic;
  color: #FC46AA;
  line-height: 1.4;
}

.ccare-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.ccare-section-sub {
  font-size: 13.5px;
  color: #777;
  margin: 0 0 20px;
  line-height: 1.5;
}

.ccare-roles-section,
.ccare-offers-section,
.ccare-my-activity {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ccare-roles-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ccare-role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ccare-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ccare-role-green:hover { border-color: #4CAF50; }
.ccare-role-pink:hover { border-color: #FC46AA; }
.ccare-role-blue:hover { border-color: #2196F3; }

.ccare-role-icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccare-role-green .ccare-role-icon { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.ccare-role-pink .ccare-role-icon { background: rgba(252, 70, 170, 0.1); color: #FC46AA; }
.ccare-role-blue .ccare-role-icon { background: rgba(33, 150, 243, 0.1); color: #2196F3; }

.ccare-role-body { flex: 1; min-width: 0; }
.ccare-role-body h4 { margin: 0 0 5px; font-size: 16.5px; font-weight: 700; color: #1a1a2e; }
.ccare-role-body p { margin: 0; font-size: 13.5px; color: #666; line-height: 1.45; }
.ccare-role-chevron { flex-shrink: 0; stroke: #bbb; }

.ccare-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ccare-offer-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.18s;
}

.ccare-offer-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }

.ccare-oc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ccare-oc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ccare-oc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccare-oc-avatar-fall {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.ccare-oc-info { flex: 1; min-width: 0; }
.ccare-oc-name { display: block; font-size: 14.5px; font-weight: 700; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccare-oc-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #888; margin-top: 3px; }
.ccare-oc-loc svg { flex-shrink: 0; stroke: #bbb; }
.ccare-oc-body { padding-top: 6px; }
.ccare-oc-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #9A67EA;
  background: rgba(154, 103, 234, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ccare-oc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ccare-stat { font-size: 12.5px; color: #555; }
.ccare-stat strong { color: #1a1a2e; }
.ccare-stat-done { color: #4CAF50; }

.ccare-activity-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.ccare-activity-list { display: flex; flex-direction: column; gap: 8px; }
.ccare-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.ccare-act-type { font-weight: 600; color: #1a1a2e; flex-shrink: 0; }
.ccare-act-loc { color: #777; flex: 1; }
.ccare-act-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  text-transform: capitalize;
}
.ccare-status-pending { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.ccare-status-matched { background: rgba(33, 150, 243, 0.12); color: #1565c0; }
.ccare-status-scheduled { background: rgba(154, 103, 234, 0.12); color: #6d28d9; }
.ccare-status-completed { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.ccare-status-cancelled { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.ccare-status-active { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }

.ccare-empty {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  padding: 32px 16px;
}

.ccare-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.ccare-modal-overlay.ccare-modal-open { opacity: 1; pointer-events: auto; }
.ccare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.ccare-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  width: min(480px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ccare-modal-overlay.ccare-modal-open .ccare-modal-box { transform: scale(1); }
.ccare-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.ccare-modal-header h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; color: #1a1a2e; }
.ccare-modal-green svg { stroke: #4CAF50; }
.ccare-modal-pink svg { stroke: #FC46AA; }
.ccare-modal-blue svg { stroke: #2196F3; }
.ccare-modal-green { border-top: 4px solid #4CAF50; border-radius: 18px 18px 0 0; }
.ccare-modal-pink { border-top: 4px solid #FC46AA; border-radius: 18px 18px 0 0; }
.ccare-modal-blue { border-top: 4px solid #2196F3; border-radius: 18px 18px 0 0; }
.ccare-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ccare-modal-close:hover { background: #e0e0e0; }
.ccare-modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ccare-modal-note {
  font-size: 13px;
  color: #777;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.45;
}
.ccare-label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: -6px; }
.ccare-label-hint { font-weight: 400; color: #aaa; }
.ccare-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.ccare-input:focus { border-color: #FC46AA; }
.ccare-textarea { resize: vertical; min-height: 80px; }
.ccare-row { display: flex; gap: 12px; }
.ccare-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ccare-err {
  font-size: 13px;
  color: #e53935;
  background: rgba(229, 57, 53, 0.07);
  padding: 9px 14px;
  border-radius: 8px;
}
.ccare-stepper { display: flex; align-items: center; gap: 14px; width: fit-content; }
.ccare-stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.ccare-stepper button:hover { border-color: #FC46AA; background: rgba(252, 70, 170, 0.05); }
.ccare-stepper span { font-size: 20px; font-weight: 700; color: #1a1a2e; min-width: 26px; text-align: center; }
.ccare-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid #f0f0f0;
}
.ccare-btn-green { background: #4CAF50; border-color: #4CAF50; }
.ccare-btn-green:hover { background: #388E3C; border-color: #388E3C; }
.ccare-btn-pink { background: #FC46AA; border-color: #FC46AA; }
.ccare-btn-pink:hover { background: #e0389a; border-color: #e0389a; }
.ccare-btn-blue { background: #2196F3; border-color: #2196F3; }
.ccare-btn-blue:hover { background: #1565c0; border-color: #1565c0; }
.ccare-sponsor-lead { font-size: 14.5px; color: #555; line-height: 1.55; margin: 0; }
.ccare-impact-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.ccare-impact-card {
  flex: 1;
  min-width: 100px;
  background: #f8f9fa;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ccare-impact-featured {
  border-color: #2196F3;
  background: rgba(33, 150, 243, 0.04);
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.12);
}
.ccare-impact-amt { font-size: 22px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.ccare-impact-desc { font-size: 12px; color: #666; line-height: 1.4; }
.ccare-sponsor-cta-text { font-size: 13.5px; color: #666; margin: 0; }
.ccare-sponsor-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
}
.ccare-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: #1a1a2e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
}
.ccare-toast.ccare-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .ccare-top-grid {
    grid-template-columns: 1fr;
  }

  .community-care-summary {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .ccare-hero { padding: 22px 18px; }
  .ccare-hero-title { font-size: 21px; }
  .ccare-hero-desc { font-size: 14px; }
  .ccare-role-card { padding: 14px; }
  .ccare-role-icon { width: 44px; height: 44px; }
  .ccare-role-body h4 { font-size: 14.5px; }
  .ccare-offers-grid { grid-template-columns: 1fr; }
  .ccare-activity-item { flex-wrap: wrap; gap: 6px; }
  .ccare-act-loc { width: 100%; }
  .ccare-act-status { align-self: flex-start; }
  .ccare-modal-overlay { align-items: flex-end; }
  .ccare-modal-box {
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }
  .ccare-row { flex-direction: column; }
  .ccare-impact-cards { flex-direction: column; }
  .ccare-impact-card { min-width: unset; }
  .ccare-toast {
    left: 12px;
    right: 12px;
    transform: translateY(24px);
    width: auto;
    text-align: center;
    white-space: normal;
    bottom: 16px;
  }
  .ccare-toast.ccare-toast-show { transform: translateY(0); }
}

/* ─── Sponsor Payment Modal ──────────────────────────────────────────────── */

.ccare-sponsor-box { max-width: 520px; }

.ccare-sponsor-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: calc(85vh - 130px);
  padding: 20px 22px 4px;
}

.ccare-sponsor-section {
  margin-bottom: 20px;
}

.ccare-sponsor-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.ccare-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #aaa;
  font-size: 11.5px;
}

/* ── Amount stepper ── */
.ccare-sponsor-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.ccare-stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #2196F3;
  background: #fff;
  color: #2196F3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
}
.ccare-stepper-btn:hover { background: #2196F3; color: #fff; }

.ccare-stepper-display {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  min-width: 90px;
  text-align: center;
}

/* ── Preset pills ── */
.ccare-sponsor-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ccare-preset-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #f8f9fa;
  color: #555;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
}
.ccare-preset-pill:hover { border-color: #2196F3; color: #2196F3; }
.ccare-preset-pill.active {
  border-color: #2196F3;
  background: #2196F3;
  color: #fff;
}

/* ── Impact rows ── */
.ccare-impact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccare-impact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1.5px solid #eee;
  transition: border-color 0.2s, background 0.2s;
}
.ccare-impact-row.active {
  background: rgba(33, 150, 243, 0.05);
  border-color: rgba(33, 150, 243, 0.3);
}

.ccare-impact-row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  margin-top: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.ccare-impact-row-dot.filled {
  border-color: #2196F3;
  background: #2196F3;
}

.ccare-impact-row-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ccare-impact-row-amt {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
}
.ccare-impact-row-desc {
  font-size: 13px;
  color: #666;
}

/* ── Note textarea ── */
.ccare-sponsor-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-family: inherit;
  font-size: 13.5px;
  color: #333;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ccare-sponsor-textarea:focus { border-color: #2196F3; }

/* ── Anonymous checkbox ── */
.ccare-sponsor-anon-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #eee;
  background: #fafafa;
  margin-bottom: 20px;
  user-select: none;
}
.ccare-sponsor-anon-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2196F3;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.ccare-anon-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}
.ccare-anon-sub {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* ── Stripe element ── */
.ccare-stripe-element {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  min-height: 60px;
}

.ccare-stripe-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #888;
  padding: 8px 0;
}

/* ── Payment error ── */
.ccare-payment-error {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
}

/* ── Trust line ── */
.ccare-sponsor-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* ── Spinners ── */
.ccare-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ccareSpinAnim 0.7s linear infinite;
  flex-shrink: 0;
}

.ccare-spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ccareSpinAnim 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes ccareSpinAnim {
  to { transform: rotate(360deg); }
}

/* ── Success modal ── */
.ccare-success-box {
  max-width: 380px;
  padding: 0;
}

.ccare-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 36px;
  text-align: center;
  gap: 10px;
}

.ccare-success-icon {
  font-size: 52px;
  line-height: 1;
}

.ccare-success-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 4px 0 0;
}

.ccare-success-amt {
  font-size: 36px;
  font-weight: 900;
  color: #2196F3;
  margin: 0;
}

.ccare-success-msg {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin: 4px 0 12px;
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
  .ccare-sponsor-presets { gap: 6px; }
  .ccare-preset-pill { padding: 5px 12px; font-size: 13px; }
  .ccare-stepper-display { font-size: 26px; min-width: 70px; }
}
