*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --teal-dark: #1a6b5a; --teal-mid: #218a6e; --teal-light: #2aaa86;
      --orange: #c1540a; --orange-light: #e06520;
      --cream: #f7f5f0; --text-dark: #1a2520; --text-mid: #3d4f47;
      --shadow: 0 4px 20px rgba(26,107,90,0.10);
    }
    body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-dark); min-height: 100vh; display: flex; flex-direction: column; }

    /* ── NAV ── */
    nav { background: var(--teal-dark); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 64px; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 16px rgba(0,0,0,0.18); }
    .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
    .nav-logo span { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
    .nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
    .nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; position: relative; }
    .nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--teal-light); transition: width 0.25s; }
    .nav-links a:hover { color: #fff; } .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } .nav-links a.active { color: #fff; }
    .nav-user { display: flex; align-items: center; gap: 16px; }
    .user-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 6px 14px 6px 8px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
    .user-chip:hover { background: rgba(255,255,255,0.22); }
    .user-avatar { width: 28px; height: 28px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .user-chip span { font-size: 0.85rem; font-weight: 600; color: #fff; }
    .btn-logout { background: rgba(255,255,255,0.12); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
    .btn-logout:hover { background: rgba(255,255,255,0.28); }
    .btn-login { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
    .btn-signup { background: var(--orange); color: #fff; border: none; border-radius: 50px; padding: 10px 22px; font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; }

    /* ── PAGE ── */
    .page { flex: 1; padding: 40px 56px 60px; max-width: 1200px; margin: 0 auto; width: 100%; }

    /* ── FEED HEADER ── */
    .feed-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
    .feed-header-left h1 { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text-dark); margin-bottom: 6px; }
    .feed-header-left p { font-size: 0.9rem; color: var(--text-mid); max-width: 360px; line-height: 1.6; }
    .feed-filter-wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
    .feed-filters { display: flex; gap: 8px; flex-wrap: nowrap; }
    .filter-btn { background: transparent; border: 1.5px solid rgba(26,107,90,0.2); color: var(--text-mid); border-radius: 50px; padding: 8px 16px; font-size: 0.85rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; white-space: nowrap; }
    .filter-btn:hover { border-color: var(--teal-mid); color: var(--teal-mid); }
    .filter-btn.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
    .filter-scrollbar { width: 100%; height: 4px; background: rgba(26,107,90,0.1); border-radius: 50px; position: relative; }
    .filter-scrollbar-thumb { position: absolute; left: 0; top: 0; width: 55%; height: 100%; background: rgba(26,107,90,0.22); border-radius: 50px; }

    /* ── FEED GRID ── */
    .feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
    .feed-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(26,107,90,0.07); transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
    .feed-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(26,107,90,0.16); }
    .feed-card.claimed { opacity: 0.65; cursor: default; }
    .feed-card.claimed:hover { transform: none; box-shadow: var(--shadow); }
    .feed-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
    .feed-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .feed-card.claimed .feed-card-img img { filter: grayscale(55%) brightness(0.85); }
    .feed-card:not(.claimed):hover .feed-card-img img { transform: scale(1.05); }
    .feed-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.68rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; backdrop-filter: blur(4px); }
    .feed-urgent { position: absolute; top: 10px; right: 10px; background: var(--orange); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; display: flex; align-items: center; gap: 4px; }
    .feed-scheduled { position: absolute; top: 10px; right: 10px; background: #2563eb; color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; display: flex; align-items: center; gap: 4px; }
    .feed-other-tag { position: absolute; top: 10px; left: 10px; background: rgba(124,58,237,0.75); color: #fff; font-size: 0.68rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; backdrop-filter: blur(4px); }
    .feed-card-body { padding: 18px 18px 0; }
    .feed-card-body h3 { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
    .feed-card.claimed .feed-card-body h3 { color: #8a9e97; }
    .feed-donor { font-size: 0.83rem; font-weight: 600; color: var(--teal-mid); margin-bottom: 12px; }
    .feed-card.claimed .feed-donor { color: #a0b0aa; }
    .feed-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-mid); margin-bottom: 14px; }
    .feed-meta span { display: flex; align-items: center; gap: 5px; }
    .feed-card-cta { border-top: 1px solid rgba(26,107,90,0.08); padding: 13px 18px; }
    .btn-claim { width: 100%; background: transparent; border: 1.5px solid var(--orange); color: var(--orange); border-radius: 10px; padding: 10px; font-size: 0.9rem; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s, color 0.2s; }
    .btn-claim:hover { background: var(--orange); color: #fff; }
    .btn-reserve { width: 100%; background: transparent; border: 1.5px solid #2563eb; color: #2563eb; border-radius: 10px; padding: 10px; font-size: 0.9rem; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s, color 0.2s; }
    .btn-reserve:hover { background: #2563eb; color: #fff; }
    .btn-already-claimed { width: 100%; background: rgba(26,107,90,0.06); border: 1.5px solid rgba(26,107,90,0.12); color: #a0b5ae; border-radius: 10px; padding: 10px; font-size: 0.9rem; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: not-allowed; }

    /* ══════════════════════════════════
       DETAIL MODAL
    ══════════════════════════════════ */
    .modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 16px; }
    .modal-backdrop.open { display: flex; }

    .detail-modal {
      background: #fff; border-radius: 24px; width: 100%; max-width: 780px;
      max-height: 92vh; overflow-y: auto; box-shadow: 0 28px 72px rgba(0,0,0,0.22);
      animation: slideUp 0.35s cubic-bezier(0.34,1.3,0.64,1) both;
      position: relative;
    }

    @keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }

    .modal-close-btn {
      position: absolute; top: 16px; right: 16px; z-index: 10;
      background: rgba(0,0,0,0.45); border: none; border-radius: 50%;
      width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #fff; font-size: 1rem; transition: background 0.2s;
      backdrop-filter: blur(4px);
    }
    .modal-close-btn:hover { background: rgba(0,0,0,0.65); }

    /* Photo gallery */
    .modal-gallery { position: relative; aspect-ratio: 16/8; overflow: hidden; border-radius: 24px 24px 0 0; background: #1a2520; }
    .modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
    .gallery-nav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
    .gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.2s, transform 0.2s; border: none; }
    .gallery-dot.active { background: #fff; transform: scale(1.2); }
    .gallery-prev, .gallery-next {
      position: absolute; top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,0.18); border: none; border-radius: 50%;
      width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #fff; font-size: 1rem; backdrop-filter: blur(4px);
      transition: background 0.2s;
    }
    .gallery-prev { left: 14px; } .gallery-next { right: 14px; }
    .gallery-prev:hover, .gallery-next:hover { background: rgba(255,255,255,0.35); }

    /* Modal body */
    .modal-body { padding: 28px 32px 32px; }

    .modal-top-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
    .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
    .badge-cat  { background: rgba(26,107,90,0.1); color: var(--teal-dark); }
    .badge-cat-other { background: rgba(124,58,237,0.1); color: #6d28d9; }
    .badge-urgent { background: rgba(193,84,10,0.12); color: var(--orange); }
    .badge-sched  { background: rgba(37,99,235,0.1); color: #2563eb; }

    .modal-title { font-family: 'Fraunces', serif; font-size: 1.55rem; font-weight: 900; color: var(--text-dark); letter-spacing: -0.03em; margin-bottom: 4px; }
    .modal-donor { font-size: 0.95rem; font-weight: 600; color: var(--teal-mid); margin-bottom: 24px; }

    .modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }

    .info-block { background: var(--cream); border-radius: 14px; padding: 16px 18px; }
    .info-block-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 10px; }
    .info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 8px; line-height: 1.5; }
    .info-row:last-child { margin-bottom: 0; }
    .info-row svg { flex-shrink: 0; margin-top: 1px; }

    /* kg highlight */
    .kg-display { display: flex; align-items: baseline; gap: 6px; }
    .kg-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 900; color: var(--teal-dark); letter-spacing: -0.04em; line-height: 1; }
    .kg-unit { font-size: 1rem; font-weight: 600; color: var(--text-mid); }

    /* best animals */
    .animal-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
    .animal-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1.5px solid rgba(26,107,90,0.15); border-radius: 50px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }

    /* schedule block */
    .schedule-block { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; }
    .schedule-block .info-block-label { color: #2563eb; }
    .schedule-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #1e40af; font-weight: 500; }
    .schedule-row + .schedule-row { margin-top: 8px; }

    /* action area */
    .modal-actions { display: flex; gap: 12px; }
    .btn-modal-claim {
      flex: 1; background: var(--orange); color: #fff; border: none;
      border-radius: 12px; padding: 14px; font-size: 1rem; font-weight: 700;
      font-family: 'DM Sans', sans-serif; cursor: pointer;
      transition: background 0.2s, transform 0.15s; box-shadow: 0 3px 14px rgba(193,84,10,0.25);
    }
    .btn-modal-claim:hover { background: var(--orange-light); transform: translateY(-1px); }
    .btn-modal-reserve {
      flex: 1; background: #2563eb; color: #fff; border: none;
      border-radius: 12px; padding: 14px; font-size: 1rem; font-weight: 700;
      font-family: 'DM Sans', sans-serif; cursor: pointer;
      transition: background 0.2s, transform 0.15s; box-shadow: 0 3px 14px rgba(37,99,235,0.25);
    }
    .btn-modal-reserve:hover { background: #1d4ed8; transform: translateY(-1px); }
    .btn-modal-claimed-state { flex: 1; background: rgba(26,107,90,0.08); border: 1.5px solid rgba(26,107,90,0.15); color: #a0b5ae; border-radius: 12px; padding: 14px; font-size: 1rem; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: not-allowed; }

    /* ── Donor-blocked button on cards ── */
    .btn-donor-blocked {
      width: 100%; background: #f1f5f4;
      border: 1.5px solid rgba(26,107,90,0.12);
      color: #b0bfba; border-radius: 10px; padding: 10px;
      font-size: 0.9rem; font-weight: 600;
      font-family: 'DM Sans', sans-serif; cursor: not-allowed;
    }
    .donor-block-wrap { position: relative; }
    .donor-blocked-tip {
      display: none; position: absolute;
      bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
      background: var(--text-dark); color: #fff;
      font-size: 0.74rem; font-weight: 500; white-space: nowrap;
      padding: 6px 12px; border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      pointer-events: none; z-index: 10;
    }
    .donor-blocked-tip::after {
      content: ''; position: absolute; top: 100%; left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: var(--text-dark);
    }
    .donor-block-wrap:hover .donor-blocked-tip { display: block; }

    /* ── Donor info banner at top of feed ── */
    .donor-info-banner {
      display: none; align-items: center; gap: 14px;
      background: #fff8f0; border: 1.5px solid rgba(193,84,10,0.22);
      border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
      animation: fadeUp 0.4s ease both;
    }
    .donor-info-banner.show { display: flex; }

    /* ── Reserve confirmation popup ── */
    .reserve-popup-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 400; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 16px; }
    .reserve-popup-backdrop.open { display: flex; }
    .reserve-popup { background: #fff; border-radius: 20px; padding: 36px 32px 28px; max-width: 400px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
    @keyframes popIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
    .reserve-popup-icon { width: 64px; height: 64px; background: linear-gradient(135deg,#1d4ed8,#3b82f6); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
    .reserve-popup h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 900; color: var(--text-dark); margin-bottom: 8px; letter-spacing: -0.02em; }
    .reserve-popup p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 22px; }
    .reserve-popup p strong { color: var(--text-dark); }
    .btn-reserve-ok { display: block; width: 100%; background: #2563eb; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 0.95rem; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s; }
    .btn-reserve-ok:hover { background: #1d4ed8; }

    /* ── Claim success popup ── */
    .claim-popup-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.52); z-index: 400; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 16px; }
    .claim-popup-backdrop.open { display: flex; }
    .claim-popup { background: #fff; border-radius: 24px; padding: 32px 28px 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.22); animation: popIn 0.35s cubic-bezier(0.34,1.3,0.64,1) both; }
    .claim-popup-icon { width: 68px; height: 68px; background: linear-gradient(135deg,var(--teal-dark),var(--teal-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 8px 24px rgba(26,107,90,0.32); }
    .claim-popup h2 { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 900; color: var(--text-dark); margin-bottom: 8px; letter-spacing: -0.02em; }
    .claim-popup p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 4px; }
    .claim-popup .btn-chat-donor:hover { background: #1d4ed8 !important; }

    /* ── FOOTER ── */
    footer { background: var(--text-dark); color: rgba(255,255,255,0.5); padding: 24px 56px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; gap: 20px; flex-wrap: wrap; }
    .footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
    .footer-logo span { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem; color: #fff; }
    .footer-links-row { display: flex; gap: 24px; }
    .footer-links-row a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
    .footer-links-row a:hover { color: var(--teal-light); }

    @media (max-width: 900px) {
      nav { padding: 0 20px; } .page { padding: 28px 20px 48px; }
      .feed-grid { grid-template-columns: 1fr; }
      .feed-header { flex-direction: column; } .feed-filter-wrap { align-items: flex-start; }
      .modal-grid { grid-template-columns: 1fr; }
      .modal-body { padding: 20px 20px 24px; }
      footer { padding: 20px; flex-direction: column; text-align: center; }
    }

    /* ── HAMBURGER MENU (hidden on desktop) ── */
    .nav-toggle {
      display: none;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 8px;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      flex-shrink: 0;
    }
    .nav-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: transform 0.25s, opacity 0.2s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    @media (max-width: 900px) {
      .nav-toggle { display: flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--teal-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.22);
        border-top: 1px solid rgba(255,255,255,0.1);
      }
      .nav-links.open { display: flex; }
      .nav-links li { width: 100%; }
      .nav-links a { display: block; padding: 13px 24px; font-size: 0.95rem; }
      .nav-links a:hover { background: rgba(255,255,255,0.08); }
      .nav-links a::after { display: none; }
    }

    /* ── PHONE (≤600px) ── */
    @media (max-width: 600px) {
      nav { padding: 0 12px; height: 58px; gap: 6px; }
      .nav-logo span { font-size: 1.05rem; }

      /* Compact the user controls so they fit beside the hamburger */
      .nav-user { gap: 6px; }
      .user-chip { padding: 4px 6px; }
      .user-chip span { display: none; }
      .btn-logout { width: 32px; height: 32px; }
      .btn-notif { width: 32px !important; height: 32px !important; }

      .page { padding: 20px 16px 40px; }

      .feed-header-left h1 { font-size: 1.45rem; }

      /* Filters scroll sideways instead of squashing */
      .feed-filter-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .feed-filters { overflow-x: auto; padding-bottom: 6px; }
      .filter-btn { padding: 7px 13px; font-size: 0.8rem; }

      /* Modal fills more of the screen and scrolls */
      .modal-backdrop { padding: 8px; }
      .modal-body { padding: 16px; }
      .modal-actions { flex-direction: column; gap: 8px; }
      .modal-actions button,
      .modal-actions a { width: 100%; }

      footer { padding: 20px 16px; flex-direction: column; text-align: center; gap: 12px; }
      .footer-links-row { flex-wrap: wrap; justify-content: center; gap: 14px; }
    }

    @media (max-width: 380px) {
      .feed-header-left h1 { font-size: 1.3rem; }
    }

    /* ── DONOR: post a new listing ──
       Added to .feed-header by livefeed.js when a donor views the page. */
    .btn-post-new {
      background: var(--orange, #e06520);
      color: #fff;
      padding: 12px 22px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      white-space: nowrap;
      align-self: center;
      transition: background 0.18s, transform 0.18s;
    }
    .btn-post-new:hover { background: #c1540a; transform: translateY(-1px); }
    .btn-post-new:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(224,101,32,0.4);
    }

    @media (max-width: 600px) {
      .btn-post-new { width: 100%; text-align: center; align-self: stretch; }
    }

    /* ══ DONOR: my own listings (donor/my-listings.html) ══
       These replace the inline styles the cards used to be built with, so
       the markup in donor-listings.js stays readable. */
    .donor-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      color: var(--text-mid);
    }
    .donor-card-top {
      display: flex; justify-content: space-between;
      align-items: flex-start; gap: 8px;
    }
    .donor-card-top h3 { margin: 0; }

    .donor-expiry { margin-top: 6px; font-size: 0.76rem; font-weight: 600; color: #dd6b20; }
    .donor-expiry.urgent { color: #c53030; }

    .donor-claimers {
      margin-top: 10px; padding-top: 10px;
      border-top: 1px solid rgba(0,0,0,0.06);
    }
    .donor-claimers-head {
      font-size: 0.76rem; font-weight: 700;
      color: var(--text-mid); margin-bottom: 6px;
    }
    .donor-claimer {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding: 6px 0;
    }
    .donor-claimer-info strong { font-size: 0.82rem; color: var(--text-dark); }
    .donor-claimer-info span {
      display: block; font-size: 0.72rem; color: var(--text-mid);
    }
    .donor-no-claimers { margin-top: 8px; font-size: 0.8rem; color: var(--text-mid); }

    .donor-btn-confirm, .donor-btn-confirmed {
      border: none; border-radius: 7px; padding: 6px 10px;
      font-size: 0.75rem; font-weight: 700; white-space: nowrap;
      font-family: inherit;
    }
    .donor-btn-confirm { background: var(--teal-dark, #1a6b5a); color: #fff; cursor: pointer; }
    .donor-btn-confirm:hover { background: #155a4c; }
    .donor-btn-confirmed { background: #e8f5f1; color: #218a6e; cursor: default; }

    .donor-btn-delete {
      margin-top: 12px; width: 100%;
      background: #fff5f5; color: #c53030;
      border: 1px solid #fed7d7; border-radius: 8px;
      padding: 9px; font-size: 0.82rem; font-weight: 600;
      cursor: pointer; font-family: inherit;
      transition: background 0.18s;
    }
    .donor-btn-delete:hover { background: #ffe8e8; }

    /* Chat button on the donor's claimer rows. Sits between the claimer's
       name and the Confirm button, so it needs the same vertical rhythm. */
    .donor-btn-chat {
      background: var(--blue, #2563eb); color: #fff; border: none;
      border-radius: 8px; padding: 7px 12px; font-size: 0.78rem;
      font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer;
      white-space: nowrap; flex-shrink: 0; transition: background 0.2s;
    }
    .donor-btn-chat:hover { background: var(--blue-light, #1d4ed8); }

    /* Confirm is withdrawn once the listing lapses — the surplus is past its
       safe window, so there is nothing left to hand over. */
    .donor-btn-expired {
      background: #eef1f0; color: #7a8a84; border: 1px solid #dde3e1;
      border-radius: 8px; padding: 7px 12px; font-size: 0.78rem;
      font-weight: 700; font-family: 'DM Sans', sans-serif;
      cursor: not-allowed; white-space: nowrap; flex-shrink: 0;
    }
