/* ============================================================
   ZEYDS CASH — Styles (mobile-first)
   "Tu cherches ? Publie. Tu trouves ? Tu gagnes."

   Architecture responsive alignée sur les breakpoints réels de
   Zeyds :
     - base (par défaut)      → smartphone 320–599px
     - @media (min-width:600) → grand téléphone / tablette portrait
     - @media (min-width:920) → desktop (le point où l'app bascule
                                 sidebar visible + bottom-nav cachée,
                                 cf. styles.css .app-shell / .bottom-nav)
   Le CSS est écrit MOBILE D'ABORD : les règles de base ciblent le
   smartphone, les media queries min-width ENRICHISSENT l'affichage
   sur écrans plus grands. Aucune règle desktop n'est corrigée après
   coup avec des max-width.
   ============================================================ */

/* ---- Reset de sûreté (scopé au module Cash) ----------------- */
#view-cash,
#view-cash *,
.cash-dialog,
.cash-dialog *,
.cash-notif-panel,
.cash-notif-panel * {
  box-sizing: border-box;
}

/* ---- Shell ------------------------------------------------- */
#view-cash {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  /* pas de overflow:hidden — couperait les panneaux absolus (notifs, etc.) */
}

.cash-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* ---- Hero (header du module) -------------------------------- */
.cash-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  padding: 16px 16px 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 127, 30, .38), transparent 30%),
    radial-gradient(circle at 6% 90%, rgba(255, 200, 0, .14), transparent 32%),
    linear-gradient(140deg, #071225 0%, #0c2544 58%, #102f4b 100%);
  box-shadow: 0 16px 40px rgba(5, 26, 55, .22);
}

.cash-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -120px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, .03),
    0 0 0 80px rgba(255, 255, 255, .016);
}

/* Label de marque : redondant sur mobile (le titre suffit), réapparaît en tablette+ */
.cash-hero-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffc36a;
}

.cash-hero-brand span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 193, 60, .18);
  font-size: 15px;
  flex-shrink: 0;
}

.cash-hero-tagline {
  margin: 0 0 6px;
  max-width: 100%;
  font-size: clamp(19px, 6vw, 44px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  word-break: break-word;
}

.cash-hero-sub {
  margin: 0 0 14px;
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .65);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Actions : grille 2 rangées (CTA pleine largeur + ghost/notif côte à côte) */
.cash-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.cash-hero-cta {
  grid-row: 1;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 8px 20px rgba(255, 103, 22, .3);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cash-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 103, 22, .42);
}

.cash-hero-cta-ghost {
  grid-row: 2;
  grid-column: 1;
  min-height: 40px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font-weight: 800;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s ease;
}

.cash-hero-cta-ghost:hover {
  background: rgba(255, 255, 255, .13);
}

.cash-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.cash-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
}

.cash-stat strong {
  font-size: clamp(15px, 4vw, 22px);
  font-weight: 950;
  color: var(--orange-light);
  letter-spacing: -.02em;
}

.cash-stat span {
  font-size: 10px;
  color: rgba(255, 255, 255, .52);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Filter bar : chips horizontales scrollables ------------ */
.cash-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  overscroll-behavior-inline: contain;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cash-filter-bar::-webkit-scrollbar { display: none; }

.cash-filter-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(8, 36, 92, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-soft);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.cash-filter-chip:hover {
  border-color: rgba(244, 102, 20, .4);
}

.cash-filter-chip.active,
.cash-filter-chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.cash-filter-divider {
  width: 1px;
  min-height: 36px;
  background: rgba(8, 36, 92, .1);
  flex-shrink: 0;
}

/* ---- Section head -------------------------------------------- */
.cash-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

.cash-section-head h2,
.cash-section-head h3 {
  margin: 0;
  min-width: 0;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 950;
  letter-spacing: -.02em;
  color: var(--navy);
}

.cash-count-badge {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---- Need cards ------------------------------------------------ */
.cash-need-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(8, 36, 92, .09);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(8, 36, 92, .05);
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}

.cash-need-card:hover,
.cash-need-card:focus {
  border-color: rgba(244, 102, 20, .32);
  box-shadow: 0 8px 28px rgba(8, 36, 92, .10);
  transform: translateY(-1px);
  outline: none;
}

.cash-need-card.cash-card-done {
  opacity: .72;
}

.cash-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.cash-cat-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 36, 92, .07);
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.cash-reward-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 168, 105, .12);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
}

.cash-free-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, .09);
  color: #0056b3;
  font-size: 12px;
  font-weight: 700;
}

.cash-status-resolved {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 168, 105, .12);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.cash-status-closed {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 36, 92, .08);
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
}

.cash-card-title {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1.28;
  word-break: break-word;
}

.cash-card-desc {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  color: var(--gray-soft);
  line-height: 1.5;
  word-break: break-word;
}

.cash-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
  font-size: 11.5px;
  color: var(--gray);
}

.cash-card-meta > span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-sols-pill {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(244, 102, 20, .10);
  color: #c04c0a;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Feed wrapper ----------------------------------------------- */
#cashFeed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.cash-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 36px 18px;
  border: 1px dashed rgba(8, 36, 92, .14);
  border-radius: 16px;
  text-align: center;
  color: var(--gray);
}

.cash-empty span {
  font-size: 32px;
}

.cash-empty strong {
  font-size: 15px;
  color: var(--navy);
}

.cash-empty p {
  margin: 0;
  font-size: 13px;
}

/* ---- Need detail -------------------------------------------------- */
#cashNeedDetail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

#cashNeedDetail[hidden] { display: none !important; }

.cash-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cash-back-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(8, 36, 92, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .14s ease;
}

.cash-back-btn:hover { background: #f5f7fb; }

.cash-report-link {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--gray-light);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cash-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(8, 36, 92, .09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(8, 36, 92, .06);
}

.cash-detail-hero h2 {
  margin: 0;
  min-width: 0;
  font-size: clamp(19px, 5.5vw, 30px);
  font-weight: 950;
  letter-spacing: -.02em;
  color: var(--navy);
  word-break: break-word;
}

.cash-detail-desc {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.6;
  word-break: break-word;
}

.cash-reward-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 193, 0, .14), transparent 50%),
    rgba(20, 168, 105, .06);
  border: 1px solid rgba(20, 168, 105, .18);
}

.cash-reward-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  min-width: 0;
  font-size: 13px;
  color: var(--gray-dark);
}

.cash-reward-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-reward-row strong {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--green);
}

.cash-gain-highlight {
  font-size: 18px !important;
  color: #14a869 !important;
}

.cash-payment-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-size: 11.5px;
  color: var(--gray);
}

.cash-provider-chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(8, 36, 92, .06);
  color: #3a4d6e;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cash-propose-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.cash-propose-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 36, 92, .14);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .14s ease, background .14s ease;
}

.cash-propose-btn span { font-size: 20px; flex-shrink: 0; }

.cash-propose-btn:hover {
  border-color: rgba(244, 102, 20, .4);
  background: #fffaf6;
}

.cash-propose-accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 102, 20, .28);
}

.cash-propose-accent:hover {
  background: linear-gradient(135deg, #e05610, #f58a28);
  border-color: transparent;
}

.cash-whatsapp-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(37, 211, 102, .32);
  border-radius: 13px;
  background: rgba(37, 211, 102, .07);
  color: #168b61;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .14s ease;
}

.cash-whatsapp-btn:hover { background: rgba(37, 211, 102, .13); }

/* ---- Solutions --------------------------------------------------- */
.cash-solutions-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.cash-sols-empty {
  padding: 18px;
  border: 1px dashed rgba(8, 36, 92, .12);
  border-radius: 13px;
  text-align: center;
  color: var(--gray);
  font-size: 13.5px;
}

.cash-solutions-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.cash-sol-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .09);
  box-shadow: 0 3px 10px rgba(8, 36, 92, .04);
}

.cash-sol-card.cash-sol-accepted {
  border-color: rgba(20, 168, 105, .3);
  background: rgba(20, 168, 105, .04);
}

.cash-sol-card.cash-sol-refused {
  opacity: .6;
  border-color: rgba(220, 60, 60, .18);
}

.cash-sol-card.cash-sol-pending {
  border-color: rgba(255, 149, 0, .2);
}

.cash-sol-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.cash-sol-type {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-soft);
}

.cash-sol-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--gray);
}

.cash-sol-accepted .cash-sol-status { color: var(--green); }
.cash-sol-refused .cash-sol-status { color: var(--red); }
.cash-sol-pending .cash-sol-status { color: #e08520; }

.cash-sol-card p {
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  color: var(--gray-deep);
  line-height: 1.5;
  word-break: break-word;
}

.cash-sol-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: #0056b3;
  text-decoration: none;
  touch-action: manipulation;
}

.cash-sol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--gray-light);
}

.cash-sol-need-title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--navy);
}

.cash-sol-time { font-size: 11.5px; color: var(--gray-light); flex-shrink: 0; }

.cash-sol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cash-accept-btn {
  flex: 1 1 120px;
  min-height: 44px;
  min-width: 0;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #14a869, #1dcc82);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 6px 16px rgba(20, 168, 105, .28);
}

.cash-refuse-btn {
  flex: 1 1 100px;
  min-height: 44px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(8, 36, 92, .14);
  border-radius: 11px;
  background: #fff;
  color: var(--gray);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
}

/* ---- Personal space ------------------------------------------------ */
.cash-personal-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 14px;
  background: rgba(8, 36, 92, .06);
  padding: 4px;
}

.cash-personal-tab {
  flex: 1 1 0;
  min-height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--gray-soft);
  font-weight: 800;
  font-size: 11.5px;
  padding: 0 4px;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}

.cash-personal-tab[aria-selected="true"] {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(8, 36, 92, .08);
}

/* ---- Gains ----------------------------------------------------------- */
.cash-gains-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 193, 0, .18), transparent 50%),
    linear-gradient(135deg, #0c2544, #103060);
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}

.cash-gains-total span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cash-gains-amount {
  font-size: clamp(22px, 8vw, 32px);
  font-weight: 950;
  color: #ffc36a;
  letter-spacing: -.02em;
  word-break: break-word;
}

.cash-gains-total small {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .46);
}

.cash-gain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .08);
}

.cash-gain-row strong {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--navy);
}

/* ---- Publish / propose dialogs — bottom sheet sur mobile ------------- */
.cash-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  background: rgba(5, 14, 30, .52);
  padding: 0;
  backdrop-filter: blur(4px);
}

.cash-dialog-overlay[hidden] { display: none !important; }

.cash-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -18px 60px rgba(5, 14, 30, .26);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cash-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 16px 16px 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(8, 36, 92, .08);
}

.cash-dialog-head h3 {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 950;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-dialog-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 36, 92, .06);
  color: var(--gray-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
}

.cash-dialog-close:hover { background: rgba(8, 36, 92, .11); }

.cash-dialog-body {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  max-width: 100%;
}

.cash-form-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-soft);
}

.cash-form-label input,
.cash-form-label textarea,
.cash-form-label select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(8, 36, 92, .16);
  border-radius: 13px;
  background: var(--tint);
  color: var(--navy);
  font: inherit;
  font-size: 16px; /* évite le zoom automatique iOS au focus */
  box-sizing: border-box;
  transition: border-color .14s ease;
}

.cash-form-label input:focus,
.cash-form-label textarea:focus,
.cash-form-label select:focus {
  outline: 0;
  border-color: var(--orange);
  background: #fff;
}

.cash-form-label textarea {
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.cash-reward-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-soft);
}

.cash-reward-toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.cash-submit-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 26px rgba(244, 102, 20, .3);
  transition: transform .15s ease;
}

.cash-submit-btn:hover { transform: translateY(-1px); }

/* ---- Notif panel — bottom sheet ancré au-dessus de la bottom-nav ----- */
.cash-notif-btn-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

#cashNotifBtn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(8, 36, 92, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#cashNotifBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.cash-notif-panel {
  position: fixed;
  top: auto;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  left: 13px;
  right: 13px;
  z-index: 80;
  width: auto;
  max-width: calc(100vw - 26px);
  border: 1px solid rgba(8, 36, 92, .10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(8, 36, 92, .18);
  overflow: hidden;
  max-height: min(320px, 60dvh);
  overflow-y: auto;
}

.cash-notif-panel[hidden] { display: none !important; }

.cash-notif-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(8, 36, 92, .06);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .12s ease;
}

.cash-notif-item:last-child { border-bottom: 0; }
.cash-notif-item:hover { background: var(--tint); }

.cash-notif-item.unread { background: rgba(244, 102, 20, .05); }
.cash-notif-item.unread .cash-notif-msg { color: var(--navy); }

.cash-notif-msg {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-deep);
  word-break: break-word;
}

.cash-notif-time { font-size: 11px; color: var(--gray-light); }

/* ---- Publish CTA inline ------------------------------------------- */
.cash-publish-cta {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 20px rgba(244, 102, 20, .28);
}

/* ---- Admin Cash panel ------------------------------------------------ */
.cash-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.cash-admin-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .08);
  text-align: center;
}

.cash-admin-stat strong {
  font-size: clamp(17px, 5vw, 22px);
  font-weight: 950;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-admin-stat span {
  font-size: 10.5px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.cash-admin-stat.cash-admin-stat-gold strong { color: #e6a814; }

.cash-admin-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .08);
  margin-bottom: 14px;
}

.cash-admin-config h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 950;
  color: var(--navy);
}

.cash-admin-config label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
}

.cash-admin-config input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(8, 36, 92, .16);
  border-radius: 11px;
  background: var(--tint);
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.cash-admin-needs h4,
.cash-admin-reports h4 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 950;
  color: var(--navy);
}

.cash-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .07);
  margin-bottom: 6px;
}

.cash-admin-row-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 200px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--gray-deep);
}

.cash-admin-row-info strong {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  font-weight: 900;
  color: var(--navy);
}

/* ============================================================
   TABLETTE / GRAND TÉLÉPHONE — dès 600px
   ============================================================ */
@media (min-width: 600px) {
  .cash-shell { gap: 16px; }

  .cash-hero { padding: 22px 24px 26px; border-radius: 22px; }

  .cash-hero-actions {
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
  }
  .cash-hero-cta        { grid-row: 1; grid-column: 1; width: auto; }
  .cash-hero-cta-ghost  { grid-row: 1; grid-column: 2; }
  .cash-notif-btn-wrap  { grid-row: 1; grid-column: 4; }

  .cash-need-card { padding: 16px; border-radius: 18px; }
  .cash-card-title { font-size: 16px; }
  .cash-card-desc { font-size: 13px; }

  .cash-admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .cash-propose-row { flex-direction: row; }
  .cash-propose-btn { flex: 1; }

  .cash-personal-tab { font-size: 13px; padding: 0 10px; }
}

/* ============================================================
   DESKTOP — dès 920px (bascule sidebar / bottom-nav de Zeyds)
   ============================================================ */
@media (min-width: 920px) {
  .cash-shell { gap: 20px; }

  .cash-hero {
    padding: clamp(24px, 3vw, 48px);
    border-radius: 28px;
  }

  .cash-hero::before {
    width: 360px;
    height: 360px;
    right: -130px;
    top: -160px;
  }

  .cash-hero-brand { display: flex; }

  .cash-hero-tagline { margin-bottom: 8px; }

  .cash-hero-sub {
    margin-bottom: 24px;
    font-size: 15px;
    max-width: 520px;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  .cash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cash-hero-cta { min-height: 50px; padding: 0 22px; font-size: 15px; }
  .cash-hero-cta-ghost { min-height: 50px; padding: 0 20px; font-size: 14px; white-space: normal; }

  .cash-hero-stats { gap: 18px; margin-top: 24px; padding-top: 20px; }

  /* Notif panel : redevient un dropdown ancré au bouton (plus de bottom sheet) */
  .cash-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    width: min(320px, 92vw);
    max-width: none;
    border-radius: 20px;
    max-height: 360px;
  }

  .cash-section-head { flex-wrap: nowrap; margin-bottom: 14px; }

  .cash-need-card { padding: 16px; border-radius: 20px; }

  .cash-detail-hero { padding: clamp(20px, 4vw, 34px); border-radius: 24px; }
  .cash-detail-hero h2 { font-size: clamp(22px, 4vw, 34px); }

  .cash-dialog-overlay { place-items: center; padding: 20px; }
  .cash-dialog {
    width: min(100%, 560px);
    border-radius: 28px;
    max-height: 88vh;
    max-height: 88dvh;
    padding-bottom: 0;
  }

  .cash-personal-tab { font-size: 13px; }
}

/* ---- Orientation paysage / faible hauteur — évite les modales tronquées */
@media (max-height: 480px) and (max-width: 919px) {
  .cash-dialog { max-height: 96vh; max-height: 96dvh; }
  .cash-hero { padding: 12px 14px 14px; }
  .cash-hero-stats { margin-top: 8px; padding-top: 8px; }
}

/* ---- Animations ------------------------------------------------- */
@keyframes cashFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cash-need-card,
.cash-sol-card {
  animation: cashFadeUp .22s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .cash-need-card,
  .cash-sol-card { animation: none; }
  .cash-hero-cta,
  .cash-hero-cta-ghost,
  .cash-submit-btn { transition: none; }
}

/* ============================================================
   ZEYDS CASH V2 — moteur de recherche humain remunere
   Ajouts : prime securisee, wizard de publication, paiement,
   litiges, notation, portefeuille, credits, reputation.
   ============================================================ */

.cash-toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(8, 36, 92, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cash-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.cash-loading {
  padding: 28px;
  text-align: center;
  color: var(--gray);
  font-size: 13.5px;
}

/* ---- Carte mission (feed) — mise en avant du gain --------------- */
.cash-card-reward {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.01em;
  color: #c04c0a;
}

.cash-secured-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 168, 105, .12);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cash-status-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 36, 92, .07);
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cash-solution-cta {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), #14a869);
  color: #fff;
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
  touch-action: manipulation;
}

/* ---- Bandeau credit ----------------------------------------------- */
.cash-credit-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 193, 0, .12);
  border: 1px solid rgba(255, 193, 0, .3);
  color: #7a5400;
  font-size: 13px;
  font-weight: 700;
}

/* ---- Reputation solveur -------------------------------------------- */
.cash-solver-card {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cash-solver-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13.5px;
  color: var(--navy);
}

.cash-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cash-badge-new { background: rgba(8, 36, 92, .07); color: var(--navy-soft); }
.cash-badge-active { background: rgba(8, 36, 92, .07); color: var(--navy-soft); }
.cash-badge-reliable { background: rgba(20, 168, 105, .12); color: var(--green); }
.cash-badge-expert { background: rgba(0, 122, 255, .1); color: #0056b3; }
.cash-badge-top { background: rgba(255, 193, 0, .18); color: #8a6200; }

.cash-solver-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--gray);
}

.cash-sol-detail {
  font-size: 12.5px;
  color: var(--gray-dark);
}

/* ---- Actions de mission (paiement, confirmation, litige) ----------- */
.cash-mission-actions {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(8, 36, 92, .09);
}

.cash-payment-warning {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #8a6200;
}

/* ---- Wizard de publication ------------------------------------------ */
.cash-wizard-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
}

.cash-wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(8, 36, 92, .14);
}

.cash-wizard-dot.active {
  background: var(--orange);
}

.cash-wizard-step legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
}

.cash-identity-fields {
  display: grid;
  gap: 10px;
  padding: 10px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(8, 36, 92, .04);
}

.cash-deadline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cash-deadline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 36, 92, .14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.cash-deadline-chip:has(input:checked) {
  border-color: var(--orange);
  background: rgba(244, 102, 20, .08);
}

.cash-reward-hint {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
}

.cash-wizard-nav {
  display: flex;
  gap: 10px;
}

.cash-wizard-nav .cash-submit-btn { flex: 1; }

/* ---- Recapitulatif / paiement ---------------------------------------- */
.cash-recap-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(8, 36, 92, .04);
}

.cash-recap-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--navy);
}

#cashRecapEdit {
  width: 100%;
  min-height: 46px;
  margin-bottom: 10px;
}

.cash-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cash-payment-methods .cash-provider-chip {
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid rgba(8, 36, 92, .14);
}

.cash-payment-methods .cash-provider-chip.active {
  background: var(--orange);
  color: #fff;
}

.cash-payment-note {
  margin: 10px 0;
  font-size: 12px;
  color: var(--gray);
}

#cashPaymentStatus {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--red);
  font-weight: 700;
}

#cashPaymentCreditOption:not([hidden]) {
  margin-bottom: 12px;
}

/* ---- Portefeuille ------------------------------------------------------ */
.cash-wallet-balance {
  display: grid;
  gap: 4px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(140deg, #071225, #102f4b);
  color: #fff;
}

.cash-wallet-balance span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.cash-wallet-balance strong { font-size: 28px; font-weight: 950; }

.cash-credits-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.cash-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 193, 0, .10);
  border: 1px solid rgba(255, 193, 0, .25);
  font-weight: 800;
  color: #8a6200;
}

.cash-credit-row small { font-weight: 600; color: #7a5400; }

.cash-gain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(8, 36, 92, .06);
  font-size: 13px;
  color: var(--gray-dark);
}

/* ---- Notation --------------------------------------------------------- */
.cash-star-picker {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.cash-star {
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  color: rgba(8, 36, 92, .18);
  cursor: pointer;
  touch-action: manipulation;
}

.cash-star.active { color: #ffb400; }

/* ---- Admin ---------------------------------------------------------- */
.cash-admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cash-admin-config label {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-dark);
}

.cash-admin-config input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(8, 36, 92, .14);
  border-radius: 10px;
}

/* ---- "Je peux aider" (accepter + delai) ------------------------------ */
.cash-help-reward-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(20, 168, 105, .06);
  border: 1px solid rgba(20, 168, 105, .18);
}

.cash-help-reward-box > span:first-child {
  font-size: 12.5px;
  color: var(--gray);
}

.cash-help-reward-box strong {
  font-size: 28px;
  font-weight: 950;
  color: var(--green);
}

.cash-help-terms {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.4;
}

.cash-help-subtitle {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--gray);
}

.cash-help-lock-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--gray);
  text-align: center;
}

.cash-help-sent-badge {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(8, 36, 92, .06);
  color: var(--navy-soft);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

.cash-help-sent-duration {
  font-weight: 800;
  color: var(--navy);
}

.cash-sol-duration {
  font-size: 13px;
  color: var(--navy);
}

#cashHelpSentDialog .cash-dialog-body {
  text-align: center;
}

#cashHelpSentDialog .cash-submit-btn {
  margin-top: 12px;
}
