/* ===== COUNTEROFFER FLOW ===== */
/* Blurred-backdrop modal shell shared by the compose / review / rematch steps. */
.counter-modal{position:fixed;inset:0;z-index:320;display:flex;align-items:center;justify-content:center;padding:20px;}
.counter-modal.hidden{display:none;}
.counter-backdrop{position:absolute;inset:0;background:rgba(20,22,20,0.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
.counter-box{
  position:relative;background:#fff;border-radius:20px;padding:28px;max-width:440px;width:100%;
  max-height:88vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.3);animation:modalPop .18s ease;
}
.counter-box-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px;}
.counter-box-head h3{font-size:18px;margin:0;}
.counter-remaining{
  font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;
  color:var(--ink-soft);background:var(--paper-dim);border:1px solid var(--line);border-radius:20px;
  padding:5px 10px;flex-shrink:0;text-align:right;line-height:1.3;
}
.counter-original-note{margin-top:6px;}
/* "Request different date" starts as a plain link so the modal stays compact, and only
   expands the calendar in place once the user actually wants to change the date. */
.counter-date-link{
  background:none;border:none;padding:0;margin:2px 0 18px;font-family:inherit;font-size:13.5px;
  font-weight:600;color:var(--safety);text-decoration:underline;cursor:pointer;
}
.counter-date-link:hover{color:var(--safety-dark);}
.counter-date-section{margin-bottom:18px;}
.counter-actions{display:flex;gap:12px;margin-top:4px;}
.counter-actions .btn{flex:1;width:auto;justify-content:center;}
.counter-compare{border:1px solid var(--line);border-radius:12px;padding:4px 16px;margin-bottom:22px;}
.counter-compare-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;}
.counter-compare-row:last-child{border-bottom:none;}
.counter-compare-label{color:var(--ink-soft);}
.counter-compare-value{font-weight:600;text-align:right;}
.counter-compare-row.total .counter-compare-value{font-size:15px;}
.counter-compare-value.up{color:var(--danger);}
.counter-compare-value.down{color:var(--success);}
/* Crew's own job card/detail once they've countered — deliberately inert (no CTA), just a
   status marker, since the ball is in the company's court until they respond. */
.pill.under-review{background:transparent;border:1px solid var(--ink);color:var(--ink);}
/* A job card awaiting THIS user's review — pulses so it's hard to scroll past. */
.req-item.needs-review{border-color:#E4B60A;animation:reviewGlow 1.8s ease-in-out infinite;}
/* A bid at the asking price glows green — it is an acceptance, not a negotiation. */
.req-item.needs-review.needs-review-good{ border-color:#1ea672; animation:reviewGlowGood 1.8s ease-in-out infinite; }
/* Mirrors reviewGlow exactly — same ring, same outer bloom, and the same background wash.
   The first version animated only the ring, so the card outlined but never filled. */
@keyframes reviewGlowGood{
  0%,100%{box-shadow:0 0 0 0 rgba(30,166,114,0.0), 0 0 10px 0 rgba(30,166,114,0.35);background:#F5FCF9;}
  50%{box-shadow:0 0 0 4px rgba(30,166,114,0.18), 0 0 22px 2px rgba(30,166,114,0.55);background:#E8F8F0;}
}
@media(prefers-reduced-motion:reduce){
  .req-item.needs-review.needs-review-good{animation:none;box-shadow:0 0 0 3px rgba(30,166,114,0.25);background:#E8F8F0;}
}

@keyframes reviewGlow{
  0%,100%{box-shadow:0 0 0 0 rgba(228,182,10,0.0), 0 0 10px 0 rgba(228,182,10,0.35);background:#FFFDF4;}
  50%{box-shadow:0 0 0 4px rgba(228,182,10,0.18), 0 0 22px 2px rgba(228,182,10,0.55);background:#FFF8DF;}
}
@media (prefers-reduced-motion: reduce){
  .req-item.needs-review{animation:none;box-shadow:0 0 0 3px rgba(228,182,10,0.25);background:#FFF8DF;}
}
.req-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;}
.req-card-footer p{margin:0;}
/* Overrides the sitewide mobile ".btn{width:100%}" rule (below, max-width:860px) — that one's
   meant for full-bleed CTAs like the accept-offer footer; this button needs to stay a compact
   bottom-right CTA at every width instead of stretching to fill the row. */
.req-card-footer .btn{width:auto;flex-shrink:0;}
