/* ==========================================================================
   MealBridge - Quick Donate & Live Pickup Tracking Styles
   Warm off-white, deep charcoal text, green for matches, amber for urgency
   ========================================================================== */

.quick-donate-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

/* Page Header */
.qd-header {
  text-align: center;
  margin-bottom: 28px;
}

.qd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border: 1px solid var(--primary-green-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qd-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text-charcoal-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.qd-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Main Input Card */
.qd-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.example-chips-wrapper {
  margin-bottom: 18px;
}

.example-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.example-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.example-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.example-chip-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-charcoal);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.example-chip-btn:hover {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border-color: var(--primary-green-border);
  transform: translateY(-1px);
}

/* Large Message Input Area */
.message-input-box {
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 24px;
}

.message-input-box:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px var(--primary-green-light);
}

.message-textarea {
  width: 100%;
  border: none;
  font-family: inherit;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-charcoal-dark);
  outline: none;
  resize: vertical;
  min-height: 130px;
}

.message-textarea::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.message-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.char-counter-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.clear-btn:hover {
  color: var(--text-charcoal-dark);
  background-color: var(--bg-subtle);
}

/* Primary CTA Button */
.cta-btn-primary {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: var(--primary-green);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn-primary:hover {
  background-color: var(--primary-green-hover);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
}

.cta-btn-primary:active {
  transform: translateY(0);
}

.cta-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.35);
}

.cta-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   AI Processing & Shimmer
   ========================================================================== */
.ai-processing-card {
  text-align: center;
  padding: 60px 30px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.processing-radar-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-green-light);
  border: 2px solid var(--primary-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  animation: radar-pulse 1.4s infinite;
}

@keyframes radar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.processing-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  margin-bottom: 8px;
}

.processing-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.processing-steps-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.step-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-mini.active {
  color: var(--primary-green);
  font-weight: 700;
}

/* ==========================================================================
   Structured Donation Card
   ========================================================================== */
.structured-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-ai-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.ai-extracted-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-sparkle-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-label-main {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-label-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-reedit-msg {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-charcoal);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-reedit-msg:hover {
  background-color: var(--bg-subtle);
}

/* Multimodal Visual Manifest Strip */
.ai-verified-photo-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.ai-verified-thumb {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.ai-verified-text-col {
  flex: 1;
}

.ai-verified-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.ai-verified-badge-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-verified-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  line-height: 1.3;
}

.ai-verified-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.extracted-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.field-cell {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  transition: all 0.15s ease;
}

.field-cell:hover {
  border-color: #D1D5DB;
  background-color: #F8F9FA;
}

.field-cell.needs-confirmation {
  background-color: var(--urgency-amber-light);
  border-color: var(--urgency-amber-border);
}

.field-label-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.field-key-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-edit-icon {
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
}

.field-val-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.field-input-inline {
  width: 100%;
  border: 1px solid var(--primary-green);
  background-color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-charcoal-dark);
  outline: none;
}

.badge-needs-confirmation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--urgency-amber);
  background-color: #FEF3C7;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.before-matching-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.before-matching-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-charcoal);
}

.check-icon-pass {
  color: var(--primary-green);
  font-weight: 800;
  font-size: 1rem;
}

.check-icon-warn {
  color: var(--urgency-amber);
  font-weight: 800;
  font-size: 1rem;
}

.food-safety-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.safety-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-green);
  cursor: pointer;
}

.safety-checkbox-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-charcoal-dark);
  cursor: pointer;
}

.compliance-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #64748B;
}

/* ==========================================================================
   SMART NGO MATCHING SCREEN
   ========================================================================== */
.matching-page-wrapper {
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.matching-hero-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.matching-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.matching-title-area h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text-charcoal-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.matching-title-area p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Urgency Clock Indicator */
.urgency-clock-card {
  background-color: var(--urgency-amber-light);
  border: 1px solid var(--urgency-amber-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
}

.urgency-clock-card.clock-expired {
  background-color: var(--expiry-red-light);
  border-color: var(--expiry-red-border);
}

.clock-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FEF3C7;
  color: var(--urgency-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clock-expired .clock-icon-wrap {
  background-color: #FEE2E2;
  color: var(--expiry-red);
}

.clock-info-col {
  display: flex;
  flex-direction: column;
}

.clock-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #92400E;
  text-transform: uppercase;
}

.clock-expired .clock-label {
  color: #991B1B;
}

.clock-timer {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--urgency-amber);
  line-height: 1.1;
}

.clock-expired .clock-timer {
  color: var(--expiry-red);
}

.clock-disclaimer {
  font-size: 0.68rem;
  color: #B45309;
  font-weight: 500;
}

.clock-expired .clock-disclaimer {
  color: #B91C1C;
}

.active-donation-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.summary-strip-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 4px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
}

.summary-pill.pill-meals {
  color: var(--primary-green);
  border-color: var(--primary-green-border);
  background-color: var(--primary-green-light);
}

.matching-criteria-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 20px;
  padding: 0 4px;
}

.ngo-options-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.ngo-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ngo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.ngo-card.recommended-card {
  border: 2px solid var(--primary-green);
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FDFB 100%);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}

.recommended-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ngo-card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ngo-org-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  margin-bottom: 4px;
}

.ngo-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-charcoal);
  background-color: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.prominent-dist-badge {
  background-color: var(--primary-green-light);
  border: 1px solid var(--primary-green-border);
  color: var(--primary-green);
  padding: 6px 14px;
}

.prominent-dist-badge .dist-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-green);
}

.prominent-dist-badge .dist-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
}

.ngo-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 16px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.ngo-spec-box {
  display: flex;
  flex-direction: column;
}

.ngo-spec-k {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ngo-spec-v {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
}

.ngo-spec-v.text-pass { color: var(--primary-green); }
.ngo-spec-v.text-warn { color: var(--urgency-amber); }

.why-match-section {
  background-color: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.why-match-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.why-match-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  list-style: none;
}

.why-match-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #14532D;
  font-weight: 600;
}

.why-match-check {
  color: var(--primary-green);
  font-weight: 800;
}

.why-match-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  background-color: #FFFFFF;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.accordion-content {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.ngo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.pickup-eta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.btn-select-ngo {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.btn-select-recommended {
  background-color: var(--primary-green);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.25);
}

.btn-select-recommended:hover {
  background-color: var(--primary-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-select-standard {
  background-color: transparent;
  color: var(--text-charcoal-dark);
  border: 1.5px solid var(--border-strong);
}

.btn-select-standard:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-charcoal);
}

/* Confirmation Panel */
.confirmation-overlay-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
  margin: 0 auto;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.conf-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.conf-shelter-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  margin-bottom: 4px;
}

.conf-distance {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.conf-summary-grid {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.conf-grid-item {
  display: flex;
  flex-direction: column;
}

.conf-k {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.conf-v {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
}

.conf-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   DONATION MATCHED STATE
   ========================================================================== */
.donation-matched-card {
  text-align: center;
  padding: 50px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.matched-hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--primary-green-light);
  border: 2px solid var(--primary-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin: 0 auto 20px;
}

.matched-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.matched-sub-message {
  font-size: 1.1rem;
  color: var(--text-charcoal);
  font-weight: 600;
  margin-bottom: 28px;
}

.matched-checklist-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 auto 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matched-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-charcoal-dark);
  font-weight: 600;
}

.matched-check-row .check-sym {
  color: var(--primary-green);
  font-weight: 800;
  font-size: 1.1rem;
}

.matched-actions-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   LIVE PICKUP TRACKING SCREEN ("Rescue in progress")
   ========================================================================== */
.rescue-tracking-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Top Manifest Bar */
.rescue-top-manifest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.rescue-manifest-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.manifest-hero-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manifest-hero-badge.badge-meals-hero {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border: 1px solid var(--primary-green-border);
}

.manifest-hero-badge.badge-veg-hero {
  background-color: #FFFFFF;
  color: var(--text-charcoal-dark);
  border: 1px solid var(--border-strong);
}

.manifest-hero-badge.badge-shelter-hero {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}

/* Demo Simulation Controls Bar */
.demo-sim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #F8FAFC;
  border: 1px dashed #CBD5E1;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.demo-sim-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-sim-btn {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-sim-btn:hover {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border-color: var(--primary-green-border);
}

/* Large Urgency Countdown Banner */
.rescue-countdown-banner {
  background-color: var(--urgency-amber-light);
  border: 1.5px solid var(--urgency-amber-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.3s ease;
}

.rescue-countdown-banner.banner-critical {
  background-color: var(--expiry-red-light);
  border-color: var(--expiry-red-border);
}

.rc-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #92400E;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.banner-critical .rc-title { color: #991B1B; }

.rc-timer-display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--urgency-amber);
  line-height: 1.1;
  margin-bottom: 4px;
}

.banner-critical .rc-timer-display { color: var(--expiry-red); }

.rc-deadline-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
  margin-bottom: 8px;
}

.rc-safety-note {
  font-size: 0.76rem;
  color: #78350F;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.4;
}

.banner-critical .rc-safety-note { color: #7F1D1D; }

/* Status Changed Banner (e.g. "✓ FOOD PICKED UP") */
.status-flash-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #065F46;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  animation: slideFadeIn 0.25s ease forwards;
}

/* Quick 4-Field Context Overview (WHAT, WHO, WHERE, STATUS) */
.rescue-meta-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.meta-summary-box {
  display: flex;
  flex-direction: column;
}

.meta-summary-k {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.meta-summary-v {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  line-height: 1.2;
}

.meta-summary-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

/* Two-Column Tracking Grid (Timeline & Pickup Card) */
.rescue-grid-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

/* Progress Timeline */
.timeline-card-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.timeline-box-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.vertical-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prog-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.prog-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.2s ease;
}

.prog-dot.dot-done {
  background-color: var(--primary-green);
  color: #FFFFFF;
}

.prog-dot.dot-active {
  background-color: var(--primary-green-light);
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 0 0 4px var(--primary-green-light);
}

.prog-dot.dot-pending {
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  color: #9CA3AF;
}

.prog-text-col {
  flex: 1;
}

.prog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prog-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
}

.prog-item.active .prog-name {
  color: var(--primary-green);
}

.prog-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prog-item.active .prog-time {
  color: var(--primary-green);
  font-weight: 700;
}

/* Pickup Details Card */
.pickup-summary-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pickup-hero-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.pickup-card-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pickup-shelter-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
  margin-bottom: 2px;
}

.pickup-dist-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pickup-status-row {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ps-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ps-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-charcoal-dark);
}

.pickup-confirmed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Control Buttons & Popover */
.pickup-controls-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.update-status-dropdown-wrapper {
  position: relative;
}

.status-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  animation: slideFadeIn 0.2s ease forwards;
}

.status-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s ease;
}

.status-dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-green);
}

.status-dropdown-item.current-item {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  font-weight: 700;
}

/* Compact Activity Feed */
.compact-feed-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.feed-card-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-stream-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}

.feed-timestamp {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 62px;
}

.feed-text {
  color: var(--text-charcoal-dark);
  font-weight: 500;
}

/* Donation Details Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 19, 22, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

.modal-content-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideFadeIn 0.25s ease forwards;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-charcoal-dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   DONATION COMPLETED SUCCESS STATE
   ========================================================================== */
.donation-completed-hero {
  text-align: center;
  padding: 48px 32px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
  animation: slideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.completed-check-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--primary-green-light);
  border: 2.5px solid var(--primary-green-border);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.2);
}

.completed-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.completed-hero-text-block {
  margin-bottom: 24px;
}

.completed-meals-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-charcoal-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.completed-delivery-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 6px 0;
}

.completed-shelter-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.2;
}

.completed-impact-pill {
  display: inline-block;
  background-color: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  color: #15803D;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.completed-efficiency-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 30px;
}

.completed-btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .qd-card, .structured-card, .matching-hero-banner, .ngo-card, .confirmation-overlay-card, .donation-matched-card, .rescue-tracking-card, .donation-completed-hero {
    padding: 20px;
  }
  .extracted-grid, .ngo-specs-grid, .why-match-list, .conf-summary-grid, .rescue-grid-main, .completed-stats-row, .rescue-meta-summary-grid {
    grid-template-columns: 1fr;
  }
  .matching-hero-top, .rescue-top-manifest {
    flex-direction: column;
    align-items: flex-start;
  }
}
