/* ===== product card (r1b1: total-first, plan ladder) =====
   Shared marketplace card styling — used by index.html (the live marketplace)
   and post-bounty.html's Step-5 preview, alongside js/market-card.mjs. Depends on
   the design tokens (--card, --line, --ink*, --money, --acc, etc.) declared on
   :root by each page's base stylesheet. Only card-scoped rules live here. */
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.16s;
}
.product:hover {
  box-shadow: var(--shadow2);
  border-color: var(--line2);
  transform: translateY(-1px);
}
.product .top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.product .clogo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex: none;
}
.product .cname {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  flex: none;
}
.product .rate {
  font-size: 12px;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.product .rate .stars {
  font-size: 12px;
}
.product .rate .ontime {
  color: var(--money);
  font-weight: 700;
}
.product .star {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--ink3);
  cursor: pointer;
  flex: none;
}
.product .star.on {
  color: #e6a817;
}
.product .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink3);
}
.product .jobblock,
.product .plan {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product .job {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.32;
  color: var(--ink);
}
.product .earn {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 9px;
  row-gap: 6px;
  color: var(--ink2);
}
.product .earn .big {
  font-size: 30px;
  font-weight: 800;
  color: var(--money);
  letter-spacing: -1.4px;
  line-height: 0.9;
}
.product .earn .fm {
  font-size: 14px;
  color: var(--ink2);
  font-weight: 600;
}
.product .earn .plus {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0;
}
.product .earn .plus .ast {
  font-size: 11px;
  vertical-align: super;
  color: var(--ink3);
  margin-left: 1px;
}
.product .exptog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc);
  cursor: pointer;
  user-select: none;
}
.product .exptog:hover {
  color: var(--acc2);
}
.product .exptog .caret {
  font-size: 10px;
  transition: transform 0.15s;
  display: inline-block;
}
.product .exp.open .exptog .caret {
  transform: rotate(90deg);
}
.product .expbody {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  border-left: 2px solid var(--line2);
  padding-left: 13px;
  transition:
    grid-template-rows 0.28s ease,
    opacity 0.2s ease,
    margin-top 0.28s ease;
}
.product .expbody > * {
  min-height: 0;
}
.product .exp.open .expbody {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 7px;
}
.product .abtxt {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
}
.product .abpts {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product .abpts li {
  font-size: 12.5px;
  color: var(--ink2);
  padding-left: 19px;
  position: relative;
}
.product .abpts li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--money);
  font-weight: 800;
}
.product .abpts li b {
  color: var(--ink);
}
.product .hr {
  height: 1px;
  background: var(--line);
  margin: 1px 0;
}
.product .tiertabs {
  display: flex;
  gap: 4px;
  background: #f2f3f6;
  border-radius: 10px;
  padding: 3px;
}
.product .tiertabs button {
  flex: 1;
  border: none;
  background: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink2);
  padding: 7px 6px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.product .tiertabs button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.product .foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.product .footL {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product .footL .payhold {
  margin-top: 5px;
}
.product .footreps {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product .reps {
  font-size: 12px;
  color: var(--ink3);
}
.product .fnote {
  font-size: 10.5px;
  color: var(--ink3);
  line-height: 1.35;
}
.product .payhold {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink3);
}
.product .payhold .clk {
  width: 13px;
  height: 13px;
  color: var(--ink3);
  flex: none;
}
.product .foot .sp {
  flex: 1;
}
.product .foot .btn {
  align-self: center;
  flex: none;
}
/* Reputation badge (Top / Trusted / Verified / New payer). Named `.repbadge`
   rather than `.tier` so it can NEVER collide with the post-bounty wizard's
   commission-tier editor cards (class `.tier`), which render in the SAME document
   as this card's Step-5 preview. Two different concepts ("reputation tier" vs
   "commission tier") must not share a class name in one DOM. Still scoped under
   .product for good measure. */
.product .repbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex: none;
}
.product .repbadge.top {
  color: var(--gold);
  background: var(--goldsoft);
}
.product .repbadge.trusted {
  color: var(--money);
  background: var(--moneysoft);
}
.product .repbadge.verified {
  color: var(--acc);
  background: var(--accsoft);
}
.product .repbadge.new {
  color: var(--amber);
  background: var(--ambersoft);
}
.stars {
  color: #e6a817;
  letter-spacing: 1px;
  font-size: 13px;
}
.sellers {
  display: flex;
  align-items: center;
}
.sellers .a {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -8px;
  font-size: 9px;
}
.sellers .a:first-child {
  margin-left: 0;
}

/* Responsive rule for the card, moved verbatim from index.html. The .price /
   .specrow selectors are legacy (no such element in the current card markup) but
   preserved exactly so this is a faithful extraction. */
@media (max-width: 600px) {
  .product {
    flex-direction: column;
  }
  .price {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    padding: 14px;
  }
  .price .n {
    font-size: 26px;
    margin-top: 0;
  }
  .price .rline {
    margin-top: 0;
    align-self: center;
  }
  .specrow {
    grid-template-columns: 1fr 1fr;
  }
}
