/* Quote Market page */

.card-title { font: 600 1.35rem/1.2 var(--font-display); margin: 0 0 14px; }

/* ---------- wallet */
.wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.wallet .loading { width: 100%; padding: 6px 0; }
.wallet .cash { font: 700 2.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wallet .cash-label { display: block; font: 700 .85rem/1.4 var(--font-body); color: var(--muted); margin-bottom: 2px; }
.wallet .who-line { color: var(--muted); font-weight: 700; margin-top: 6px; }
.wallet .daily { text-align: right; }
.wallet .daily .fine { margin: 8px 0 0; text-align: right; }
.wallet .pitch { font: 600 1.2rem/1.35 var(--font-display); max-width: 34ch; }
.wallet .pitch-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.next-daily { font: 600 1.05rem/1.2 var(--font-display); color: var(--muted); }
.next-daily b { color: var(--ink); font-variant-numeric: tabular-nums; }

.market-stats { text-align: center; color: var(--muted); font-weight: 700; margin: -6px 0 24px; }
.market-stats:empty { display: none; }

/* ---------- appraiser */
.appraise-field { position: relative; }
.quote-input {
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.3;
  text-align: center;
  resize: vertical;
  min-height: 108px;
  padding: 20px 20px 30px;
}
.quote-input::placeholder { font-family: var(--font-quote); font-weight: 500; font-style: italic; }
.appraise-field .counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #b3ab9c;
  pointer-events: none;
}
.appraise-field .counter.near { color: var(--bad); }

.appraisal {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  min-height: 60px;
}
.appraisal .hint { color: var(--muted); margin: 6px 0 0; font-weight: 600; }
.appraisal .value-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.appraisal .value { font: 700 3rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.appraisal .value small { display: block; font: 700 .8rem/1.4 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.appraisal .badge { font-size: 1rem; padding: 7px 14px 8px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.reasons li { font-size: .85rem; font-weight: 800; padding: 4px 11px 5px; border-radius: 99px; background: #e3f6ea; color: #17693b; }
.reasons li.bad { background: #fde8e8; color: #b3261e; }
.status { font-weight: 700; font-size: 1.05rem; }
.status .who-link { font-size: inherit; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.need { color: var(--muted); font-weight: 700; font-size: .92rem; }

/* ---------- lists */
.find { display: flex; gap: 10px; margin-bottom: 16px; }
.find .input { flex: 1; min-width: 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 14px; }
.list-head h3 { font: 600 1.15rem/1.2 var(--font-display); margin: 0; }
.list-head .muted { font-size: .92rem; }
.select {
  font: 700 .95rem/1.2 var(--font-body);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--ink); }

.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-top: 7px solid var(--tc, var(--t-common));
  border-radius: 18px;
  min-height: 190px;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
.qcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qcard.mine { background: #fffcf0; }
.qtext {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-quote);
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 4px 2px;
}
.qtext.s1 { font-size: 3.2rem; line-height: 1; }
.qtext.s2 { font-size: 2rem; }
.qtext.s3 { font-size: 1.35rem; }
.qtext.s4 { font-size: 1.02rem; }
.qmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qval { font: 600 .95rem/1 var(--font-display); color: var(--muted); }
.qowner { font-size: .9rem; color: var(--muted); font-weight: 600; min-height: 1.35em; }
.qactions { display: flex; gap: 8px; flex-wrap: wrap; }
.qactions .btn { flex: 1 1 auto; }
.for-sale-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: .92rem; }
.price-tag {
  display: inline-block;
  font: 700 1.05rem/1 var(--font-display);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 9px 6px;
  white-space: nowrap;
}
.qdel {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: #ffe1e1;
  color: var(--bad);
  cursor: pointer;
  font-weight: 800;
  font-size: .8rem;
}
.qdel:hover { background: var(--bad); color: #fff; }

.who-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.who-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.players { list-style: none; padding: 0; margin: 0; }
.player-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
}
.player-row:nth-child(odd) { background: var(--soft); }
.player-row .pos { font: 600 1rem/1 var(--font-display); color: var(--muted); text-align: center; }
.player-row .pos.medal { font-size: 1.45rem; }
.player-row .sub { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.player-row .worth { font: 700 1.15rem/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.player-row.me { outline: 2px solid var(--ink); }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; }
.feed li + li { border-top: 1.5px solid var(--line); }
.feed .ic { font-size: 1.3rem; line-height: 1.3; }
.feed .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed .when { color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.feed q { font-family: var(--font-quote); font-weight: 600; }

.player-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- modals */
.profile-head { text-align: center; margin: 4px 0 20px; }
.profile-head h2 { margin-bottom: 10px; }
.profile-stats { display: flex; justify-content: center; gap: 10px 32px; flex-wrap: wrap; }
.profile-stats div b { display: block; font: 700 1.5rem/1.1 var(--font-display); }
.profile-stats div span { color: var(--muted); font-size: .88rem; font-weight: 700; }
.modal .quote-preview {
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  padding: 16px;
  background: var(--soft);
  border-radius: 14px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.modal .row { display: flex; gap: 10px; }
.modal .row .btn { flex: 1; }
.money-input { position: relative; }
.money-input::before {
  content: '$';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--muted);
}
.money-input .input { padding-left: 32px; }
.price-hints { display: flex; gap: 6px; flex-wrap: wrap; }
.price-hints button {
  border: 0;
  background: var(--soft);
  border-radius: 99px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
.price-hints button:hover { background: var(--line); }

/* ---------- how it works */
.how summary { font: 600 1.15rem/1.3 var(--font-display); cursor: pointer; }
.how ul { margin: 14px 0 0; padding-left: 22px; }
.how li { margin: 6px 0; }

@media (max-width: 560px) {
  .wallet .daily { text-align: left; width: 100%; }
  .wallet .daily .btn { width: 100%; }
  .wallet .daily .fine { text-align: left; }
  .wallet .cash { font-size: 2rem; }
  .quote-input { font-size: 1.35rem; }
  .appraisal .value { font-size: 2.4rem; }
  .qgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qcard { padding: 12px 10px; min-height: 160px; border-radius: 14px; }
  .qtext.s1 { font-size: 2.4rem; }
  .qtext.s2 { font-size: 1.5rem; }
  .qtext.s3 { font-size: 1.1rem; }
  .qtext.s4 { font-size: .92rem; }
  .qmeta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qactions .btn { font-size: .85rem; padding: 8px 10px 9px; }
}
@media (max-width: 380px) {
  .qgrid { grid-template-columns: 1fr; }
}
