/* ============================================================
   Traders tab (js/trader.js) — matches the Keep's gump look
   ============================================================ */
.trd-shops { display: flex; flex-direction: column; gap: 12px; }
.trd-shops > h2 { margin-bottom: 0 !important; }

.trd-trader {
  --trd: #ffcf8a;
  background: #17110c; border: 1px solid #4a3822; border-left: 3px solid var(--trd);
  border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
}
.trd-head { display: flex; gap: 12px; align-items: flex-start; }
.trd-glyph {
  flex: 0 0 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--trd); background: radial-gradient(circle at 50% 40%, #2e2216, #120d09);
  border: 1px solid #5a4428; text-shadow: 0 0 10px var(--trd);
}
.trd-who { flex: 1; min-width: 0; }
#hub .trd-who h3 { margin: 0 0 2px; color: var(--trd); font-size: 16px; }
.trd-title { color: #b8a27a; font-size: 12.5px; font-weight: normal; font-style: italic; margin-left: 6px; }
.trd-quote { font-style: italic; color: #d8c8a0; font-size: 13px; line-height: 1.4; }
.trd-spec { font-size: 12px; margin-top: 2px; }

.trd-stock { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.trd-shelf { display: flex; gap: 8px; flex-wrap: wrap; }
.trd-sep { width: 1px; align-self: stretch; background: #4a3822; margin: 0 2px; }

.trd-slot {
  width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0 3px; border-radius: 6px; position: relative;
}
.trd-slot .item-cell { margin: 0 auto; }
.trd-price { font-size: 12px; color: #ffd76a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trd-price.h-bad { color: #ff7a6a; }
.trd-tag {
  font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: #b8a27a; line-height: 1;
  white-space: nowrap;
}
.trd-tag-f { color: #ffd76a; }
.trd-feat {
  width: 78px; background: linear-gradient(#2a1d10, #1a120b); border: 1px solid #8a6a3e;
  box-shadow: inset 0 0 12px rgba(255,190,90,0.12);
}
.trd-feat.trd-demi { border-color: #ff2a2a; box-shadow: inset 0 0 14px rgba(255,42,42,0.25), 0 0 10px rgba(255,42,42,0.35); }
.trd-feat.trd-demi .trd-tag-f { color: #ff6a5a; }
.trd-sold { opacity: 0.45; }
.trd-soldmark {
  width: 48px; height: 48px; border: 1px dashed #4a3a24; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: #7a6a4c; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}

.trd-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding-top: 6px; border-top: 1px solid #2e2418; }
.trd-rbtn { margin-left: auto; padding: 4px 10px !important; font-size: 12px !important; }

/* side panel */
.trd-purse { font-size: 13px; font-weight: normal; letter-spacing: 0; float: right; }
.trd-detail { margin-top: 0; }
.trd-from { font-size: 11.5px; margin-bottom: 6px; font-style: italic; }
.trd-detrow { display: flex; gap: 10px; align-items: flex-start; }
.trd-detrow > div:last-child { flex: 1; min-width: 0; line-height: 1.4; }
.trd-lobby { margin-top: 6px; font-size: 12px; }
.trd-cmp { margin-top: 8px; padding-top: 6px; border-top: 1px solid #2e2418; }
.trd-cmphead { font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trd-eqcell .item-cell { width: 32px; height: 32px; }
.trd-eqcell .item-cell img { width: 28px; height: 28px; }
.trd-cmptab td, .trd-cmptab th { padding: 3px 4px; font-size: 12px; }
.trd-costline { margin-top: 8px; font-size: 13.5px; }
.trd-bb { display: flex; gap: 6px; flex-wrap: wrap; }
.trd-small { font-size: 11.5px; margin-top: 4px; }
