/* Dashboard + donate page styles. Uses --ffc-* vars defined in app.css.
   Mobile-first (375x667). All interactive elements are >= 44x44px. */

/* -------- Families-fed header badge (gardener-only) --------
   Sub-header strip below the main nav. Hidden by default; revealed by
   public/js/dashboard/families-badge.js after roles load. */
.ff-badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fef9ee 0%, #f4faf7 100%);
  border-top: 1px solid var(--ffc-gray-light);
  border-bottom: 1px solid var(--ffc-gray-light);
  text-align: center;
}
.ff-badge[hidden] { display: none; }

.ff-badge__icon {
  font-size: 20px;
  line-height: 1;
}
.ff-badge__num {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ffc-green-deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  /* Subtle pulse cue when the count animates — see families-badge.js */
  transition: transform 200ms ease;
}
.ff-badge__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ffc-black);
}

@media (min-width: 640px) {
  .ff-badge { padding: 12px 24px; gap: 10px; }
  .ff-badge__num { font-size: var(--fs-2xl); }
  .ff-badge__label { font-size: var(--fs-base); }
}

/* Tab nav for the authenticated app shell */
.dash-tabs {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--ffc-gray-light);
  background: var(--ffc-white);
  position: sticky;
  /* Was top: 56px which assumed a 56-px fixed header that doesn't exist on
     app.html. top: 0 anchors cleanly below the non-sticky header flow. */
  top: 0;
  z-index: 1000;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ffc-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-tab:hover, .dash-tab:focus-visible {
  color: var(--ffc-black);
}

.dash-tab.active {
  color: var(--ffc-black);
  border-bottom-color: var(--ffc-gold);
}

.dash-tab:focus-visible {
  outline: 2px solid var(--ffc-blue);
  outline-offset: -2px;
}

/* Sections */
.dash-section {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 0.25s ease;
}

.dash-panel[hidden] { display: none; }

/* Summary stat row */
.dash-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  background: var(--ffc-white);
  border-radius: var(--radius);
  padding: 16px 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.summary-num {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ffc-black);
  line-height: 1.2;
}

.summary-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Affiliate link list */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.link-card {
  background: var(--ffc-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.link-card-pantry {
  font-weight: 600;
  color: var(--ffc-black);
  font-size: var(--fs-base);
  margin-bottom: 4px;
}

.link-card-pantry-empty {
  color: var(--ffc-gray);
  font-style: italic;
}

.link-url {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Cascadia Mono', monospace;
  font-size: var(--fs-sm);
  color: var(--ffc-blue);
  word-break: break-all;
  background: var(--ffc-gray-light);
  padding: 8px 10px;
  border-radius: 8px;
  margin: 8px 0 12px;
}

.link-stats {
  display: flex;
  gap: 16px;
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.link-stat strong {
  color: var(--ffc-black);
  font-weight: 700;
}

.link-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.link-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.link-copied {
  display: inline-block;
  margin-left: 8px;
  font-size: var(--fs-sm);
  color: var(--ffc-green-dark);
  font-weight: 600;
}

/* Roles list */
.role-count-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-count-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ffc-gray-light);
}

.role-count-list li:last-child {
  border-bottom: none;
}

.role-count-list .role-count-empty {
  color: var(--ffc-gray);
  font-style: italic;
  display: block;
  text-align: center;
  border: none;
}

.role-name {
  font-weight: 600;
  color: var(--ffc-black);
  text-transform: capitalize;
}

.role-num {
  font-weight: 700;
  color: var(--ffc-gold-dark);
  font-size: var(--fs-lg);
}

/* .select-input, .text-input, .field-group input[type="email"] all inherit
   from .field__input in app.css — single canonical input component. */

.field-group {
  margin-top: 16px;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ffc-black);
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--ffc-gray);
}

.donate-amt-other {
  grid-column: span 4;
}

@media (min-width: 480px) {
  .donate-amt-other {
    grid-column: span 4;
  }
}

.custom-wrap {
  margin: 0 0 16px;
  padding: 12px;
  background: var(--ffc-gray-light);
  border-radius: var(--radius);
}

.custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-prefix {
  position: absolute;
  left: 14px;
  font-size: var(--fs-lg);
  color: var(--ffc-gray);
  pointer-events: none;
  font-weight: 600;
}

/* Custom amount input on donate page — $ prefix shifts padding-left. */
#custom-amt {
  width: 100%;
  padding: 12px 14px 12px 32px;
  border: 2px solid var(--ffc-border);
  border-radius: var(--radius);
  font-size: var(--fs-lg);
  background: var(--ffc-white);
  -webkit-appearance: none;
  min-height: 48px;
  box-sizing: border-box;
}

#custom-amt:focus {
  outline: none;
  border-color: var(--ffc-green);
}

.split-explainer {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--ffc-green-pale);
  border-left: 3px solid var(--ffc-green);
  border-radius: 0 8px 8px 0;
}

.split-line {
  font-size: var(--fs-sm);
  color: var(--ffc-black);
  margin-bottom: 6px;
  line-height: 1.5;
}

.split-line:last-child { margin-bottom: 0; }

.split-line strong {
  color: var(--ffc-green-dark);
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Log Harvest tab                                                           */
/* -------------------------------------------------------------------------- */

.card-subtitle {
  color: var(--ffc-gray);
  font-size: var(--fs-sm);
  margin: 0 0 16px;
}

/* .text-input and textarea.text-input are aliased to .field__input in app.css */

.quick-add-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* .btn--quick lives in app.css. Quick-add row just provides flex layout. */
.quick-add-row .btn--quick {
  flex: 1;
}

.harvest-success-card {
  background: var(--ffc-green-pale);
  border-left: 4px solid var(--ffc-green);
}

.harvest-impact {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 8px;
}

.harvest-safety {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 8px;
}

.harvest-season {
  font-size: var(--fs-sm);
  color: var(--ffc-green-dark);
  font-weight: 600;
  margin: 0 0 16px;
}

/* Recent harvest list */
.harvest-list {
  display: flex;
  flex-direction: column;
}

.harvest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ffc-gray-light);
}

.harvest-row:last-child {
  border-bottom: none;
}

.harvest-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.harvest-row-type {
  font-weight: 600;
  color: var(--ffc-black);
  font-size: var(--fs-base);
}

.harvest-row-meta {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
}

.harvest-row-weight {
  font-weight: 700;
  color: var(--ffc-gold-dark);
  font-size: var(--fs-base);
  white-space: nowrap;
  margin-left: 12px;
}

.harvest-season-summary {
  margin-top: 12px;
  padding: 12px;
  background: var(--ffc-gray-light);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ffc-green-dark);
  font-weight: 600;
  text-align: center;
}

.empty-state {
  color: var(--ffc-gray);
  font-style: italic;
  text-align: center;
  padding: 8px 0;
}

/* -------------------------------------------------------------------------- */
/* My Gardens tab                                                            */
/* -------------------------------------------------------------------------- */

.gardens-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.garden-card {
  padding: 16px;
}

.garden-card-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 6px;
}

.garden-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.garden-card-loc,
.garden-card-pantry {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
}

.garden-card-badges {
  display: flex;
  gap: 6px;
}

/* .badge base + all modifiers live in app.css. */

/* Assign form status message */
.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-status-success {
  background: var(--status-success-bg);
  color: var(--status-success-ink);
}

.form-status-error {
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

/* -------------------------------------------------------------------------- */
/* Produce Boxes tab                                                         */
/* -------------------------------------------------------------------------- */

.boxes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box-card {
  padding: 16px;
}

.box-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.box-status-badge {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--ffc-black);
}

.box-card-addr {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 4px;
}

.box-card-time {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  margin: 0;
}

.box-qr-container {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.box-qr-img {
  max-width: 256px;
  width: 100%;
  height: auto;
}

.box-id-text {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Cascadia Mono', monospace;
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 16px;
}

/* -------------------------------------------------------------------------- */
/* Pickups tab                                                               */
/* -------------------------------------------------------------------------- */

.pickups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pickup-card {
  padding: 16px;
}

.pickup-status-line {
  margin-bottom: 8px;
}

.pickup-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pickup-status-requested {
  background: var(--ffc-gray-light);
  color: var(--ffc-gray);
}

.pickup-status-assigned {
  background: var(--status-warn-bg);
  color: var(--status-warn-ink);
}

.pickup-status-picked_up {
  background: var(--status-info-bg);
  color: var(--status-info-ink);
}

.pickup-status-delivered {
  background: var(--status-success-bg);
  color: var(--status-success-ink);
}

.pickup-pantry {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ffc-black);
  margin: 0 0 4px;
}

.pickup-times {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  margin-bottom: 12px;
}

.pickup-actions {
  display: flex;
  gap: 8px;
}

/* QR Code Modal */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.qr-modal {
  position: relative;
  background: var(--ffc-white);
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ffc-gray);
  cursor: pointer;
  padding: 4px 8px;
  min-height: 44px;
  min-width: 44px;
}

.qr-modal-close:hover {
  color: var(--ffc-black);
}

.qr-modal-loading {
  color: var(--ffc-gray);
  padding: 32px 0;
}

.qr-modal-svg {
  display: inline-block;
  margin-bottom: 16px;
}

.qr-modal-svg svg {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
}

.qr-modal-action {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Gardener impact card (top of Log Harvest tab)                             */
/* -------------------------------------------------------------------------- */

.gardener-impact-card {
  background: linear-gradient(135deg, var(--ffc-green-pale), #eef6e8);
  border-left: 4px solid var(--ffc-green);
  margin-bottom: 16px;
}

.gardener-impact-msg {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-green-dark);
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Gardener pantry info card (My Gardens tab)                                */
/* -------------------------------------------------------------------------- */

.gardener-pantry-card {
  margin-bottom: 16px;
}

.gardener-pantry-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 8px;
}

.gardener-pantry-addr {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 4px;
}

.gardener-pantry-hours {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 12px;
}

.gardener-pantry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gardener-pantry-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Produce handling tips card (Log Harvest tab)                              */
/* -------------------------------------------------------------------------- */

.produce-tips-card {
  background: var(--ffc-gray-light);
  margin-bottom: 16px;
}

.produce-tips-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 10px;
}

.produce-tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.produce-tips-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  color: var(--ffc-black);
  line-height: 1.6;
  margin-bottom: 4px;
}

.produce-tips-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--ffc-green);
  font-weight: 700;
}

.produce-tips-legal {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  margin: 0;
  font-style: italic;
}

/* -------------------------------------------------------------------------- */
/* Getting started card (new gardener onboarding)                            */
/* -------------------------------------------------------------------------- */

.getting-started-card {
  background: linear-gradient(135deg, #fef9ee, #fdf3d7);
  border-left: 4px solid var(--ffc-gold);
  margin-bottom: 16px;
}

.getting-started-heading {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 16px;
}

.getting-started-steps {
  list-style: none;
  counter-reset: gs-step;
  padding: 0;
  margin: 0;
}

.getting-started-steps li {
  counter-increment: gs-step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.getting-started-steps li:last-child {
  margin-bottom: 0;
}

.getting-started-steps li::before {
  content: counter(gs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--ffc-gold);
  color: var(--ffc-white);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.getting-started-steps li strong {
  display: block;
  color: var(--ffc-black);
  font-size: var(--fs-base);
}

.getting-started-detail {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin-top: 2px;
}

.getting-started-link {
  display: inline-block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ffc-gold-dark);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Produce type tip (below produce dropdown)                                 */
/* -------------------------------------------------------------------------- */

.produce-type-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--status-success-bg);
  border-left: 3px solid var(--ffc-green);
  border-radius: 0 8px 8px 0;
  font-size: var(--fs-sm);
  color: var(--ffc-green-dark);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Seasonal tip card                                                         */
/* -------------------------------------------------------------------------- */

.seasonal-tip-card {
  background: var(--ffc-gray-light);
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
}

.seasonal-tip-icon {
  font-size: 24px;
  margin: 0 0 6px;
}

.seasonal-tip-text {
  font-size: var(--fs-sm);
  color: var(--ffc-green-dark);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Temperature badge on pickup cards                                         */
/* -------------------------------------------------------------------------- */

.temp-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}

.temp-badge-cool {
  background: var(--status-success-bg);
  color: var(--status-success-ink);
}

.temp-badge-warm {
  background: var(--status-warn-bg);
  color: var(--status-warn-ink);
}

.temp-badge-hot {
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.temp-badge-unknown {
  background: var(--ffc-gray-light);
  color: var(--ffc-gray);
}

/* -------------------------------------------------------------------------- */
/* Pantry food safety summary                                                */
/* -------------------------------------------------------------------------- */

.pantry-safety-summary {
  font-size: var(--fs-sm);
  color: var(--ffc-black);
  line-height: 1.6;
  margin: 0;
}

/* My Subscription tab                                                       */
/* -------------------------------------------------------------------------- */

.sub-card {
  padding: 20px 16px;
}

.sub-status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.sub-status-active {
  background: var(--status-success-bg);
  color: var(--status-success-ink);
}

.sub-status-paused {
  background: var(--status-warn-bg);
  color: var(--status-warn-ink);
}

.sub-status-canceled {
  background: var(--ffc-gray-light);
  color: var(--ffc-gray);
}

.sub-pantry-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 16px;
}

.sub-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sub-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-detail-label {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-detail-value {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ffc-black);
}

.sub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-canceled-note {
  color: var(--ffc-gray);
  font-size: var(--fs-sm);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sub-confirm-card {
  border-left: 4px solid var(--ffc-gold);
  padding: 20px 16px;
}

.sub-confirm-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0 0 8px;
}

.sub-confirm-card p {
  color: var(--ffc-gray);
  font-size: var(--fs-sm);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* .btn--outline lives in app.css. */

/* Tablet up */
@media (min-width: 640px) {
  .dash-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Share & Earn shows 2 summary cards — keep 2 cols when only 2 children */
  #panel-share .dash-summary {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----- Payouts card (Stripe Connect Express) ----- */

#share-payouts-card .payouts-status {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.payouts-status-ready {
  background: var(--status-success-bg);
  color: var(--status-success-ink);
}
.payouts-status-pending {
  background: var(--status-warn-bg);
  color: var(--status-warn-ink);
}
.payouts-status-new {
  background: var(--ffc-gray-light);
  color: var(--ffc-gray);
}

.payouts-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.payouts-amount {
  background: var(--ffc-gray-light);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.payouts-amount-num {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
}
.payouts-amount-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.payouts-hint {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 8px 0 12px;
}

.payouts-fineprint {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  margin-top: 10px;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Ready-to-pick: button on garden card, modal, chips, status pill, toast    */
/* -------------------------------------------------------------------------- */

.garden-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.garden-card-status {
  margin-top: 10px;
}

.ready-pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ffc-green-pale);
  color: var(--ffc-green-dark);
  border: 1px solid var(--ffc-green);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
}

.ready-pick-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ffc-green-dark);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.garden-card-status-line {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
}

/* Modal scaffold (mobile-first; full-width sheet on small viewports) */
.ready-pick-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0;
  animation: fadeIn 0.15s ease;
}

.ready-pick-modal[hidden] { display: none; }

.ready-pick-modal-card {
  position: relative;
  background: var(--ffc-white);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 560px) {
  .ready-pick-modal {
    align-items: center;
    padding: 16px;
  }
  .ready-pick-modal-card {
    border-radius: 16px;
  }
}

.ready-pick-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ffc-gray);
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  min-width: 44px;
}

.ready-pick-modal-heading {
  margin: 0 0 4px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
  padding-right: 32px;
}

.ready-pick-modal-sub {
  margin: 0 0 16px;
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  line-height: 1.4;
}

.ready-pick-section-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ffc-black);
  margin-bottom: 6px;
}

.ready-pick-hint {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  margin: 0 0 8px;
}

.ready-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ready-pick-chip {
  appearance: none;
  background: var(--ffc-white);
  border: 1.5px solid var(--ffc-gray-light);
  color: var(--ffc-black);
  border-radius: 99px;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ready-pick-chip:hover {
  border-color: var(--ffc-green);
}

.ready-pick-chip.selected {
  background: var(--ffc-green);
  border-color: var(--ffc-green);
  color: var(--ffc-white);
}

.ready-pick-chip:focus-visible {
  outline: 2px solid var(--ffc-blue);
  outline-offset: 2px;
}

.ready-pick-notes {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1.5px solid var(--ffc-gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  resize: vertical;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.ready-pick-actions {
  display: flex;
  gap: 8px;
}

.ready-pick-actions .btn {
  flex: 1;
}

.ready-pick-error {
  font-size: var(--fs-sm);
  color: var(--ffc-red);
  margin: -8px 0 12px;
}

/* Toast (shared with dashboard mutations) */
.ffc-toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 20px;
  background: var(--ffc-green-dark);
  color: var(--ffc-white);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 10000;
  transform: translateY(120%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.ffc-toast.show {
  transform: translateY(0);
}

.ffc-toast.toast-error {
  background: var(--ffc-red);
}

/* ==========================================================================
   Neighbor tab — My Pickups
   ========================================================================== */

.neighbor-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ffc-black);
  margin: 0 0 8px;
  line-height: 1.25;
}

.neighbor-pickup-sub {
  font-size: var(--fs-md);
  color: var(--ffc-gray);
  margin: 0 0 6px;
}

.neighbor-pickup-address {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin: 0 0 12px;
  word-break: break-word;
}

.neighbor-pickup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.neighbor-pickup-actions .btn {
  flex: 1 1 140px;
  text-align: center;
}

.neighbor-mobile-btn {
  margin-top: 4px;
}

.neighbor-mobile-status {
  font-size: var(--fs-sm);
  color: var(--ffc-green);
  margin-top: 10px;
  text-align: center;
}

.neighbor-empty-sub {
  font-size: var(--fs-md);
  color: var(--ffc-gray);
  line-height: 1.45;
  margin: 0;
}

.neighbor-consent-card {
  border-left: 4px solid var(--ffc-gold);
}

.neighbor-consent-text {
  font-size: var(--fs-sm);
  color: var(--ffc-black);
  line-height: 1.5;
  margin: 8px 0 14px;
}

/* Dietary flag chips — multi-select, mobile-first thumb targets (min 44px) */
.dietary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dietary-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--ffc-gray-light);
  background: var(--ffc-white);
  color: var(--ffc-black);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 999px;
  min-height: 44px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  line-height: 1.1;
}

.dietary-chip:hover,
.dietary-chip:focus-visible {
  border-color: var(--ffc-green);
  outline: none;
}

.dietary-chip.selected {
  background: var(--ffc-green);
  border-color: var(--ffc-green);
  color: var(--ffc-white);
  font-weight: 600;
}

.neighbor-prefs-status {
  font-size: var(--fs-sm);
  color: var(--ffc-gray);
  margin-top: 6px;
  font-style: italic;
}

/* ----- Gardener Impact card (Share & Earn) ----- */

#share-impact-card .impact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#share-impact-card h3 {
  margin: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 4px 0 12px;
}

.impact-stat {
  background: var(--ffc-gray-light);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.impact-stat-num {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ffc-black);
  line-height: 1.2;
}

.impact-stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.impact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ffc-gray-light);
  border-radius: 8px;
  margin-bottom: 12px;
}
.impact-top-label {
  font-size: var(--fs-xs);
  color: var(--ffc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.impact-top-value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ffc-black);
  text-transform: capitalize;
}

.impact-empty {
  color: var(--ffc-gray);
  font-size: var(--fs-sm);
  margin: 8px 0 12px;
  line-height: 1.45;
}

.impact-share-btn {
  margin-top: 4px;
}

/* Range toggle pill — shared pattern, scoped to impact card for now. */
.range-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--ffc-gray-light);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 12px;
}
.range-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ffc-gray);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.range-toggle-btn.is-active {
  background: var(--ffc-white);
  color: var(--ffc-black);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.range-toggle-btn:focus-visible {
  outline: 2px solid var(--ffc-green);
  outline-offset: 2px;
}

/* Skeleton loading state — generic enough to reuse. */
.skeleton {
  background: linear-gradient(90deg, var(--ffc-gray-light) 0%, var(--ffc-border-soft) 50%, var(--ffc-gray-light) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
  min-height: 70px;
}
.impact-stat.skeleton {
  /* Override inner layout for the skeleton cells */
  background: linear-gradient(90deg, var(--ffc-gray-light) 0%, var(--ffc-border-soft) 50%, var(--ffc-gray-light) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (min-width: 480px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
