/* [botpiac] BOTPIAC – a Klán-menü 5. füle; B · Műszak tokenekre (style.css :root), a clanmenu.css / league.css elemeire építve.
   Fekete-fehér, hajszálvonal; EGYETLEN akcentus a pálya fénye (FP, saját / vezető licit). Szín csak jelentéssel: jó vétel (zöld),
   drága (piros), túllicitáltak (piros keret). Mobilon a panel az alsó lap (clanmenu), a kártyák egy oszlopban. */

/* ---------- 5 fül; a Botpiac fülön szélesebb panel (asztalon) ---------- */
.cm-tabs { grid-template-columns: repeat(5, auto); justify-content: space-between; padding: 0 14px; }
.cm-tabs button { font-size: 17px; padding: 0 4px; }
@media (min-width: 761px) {
  .cm-body[data-tab="market"] { grid-template-columns: minmax(0, 1fr) clamp(560px, 46vw, 760px); }
}

.bm-v { gap: 18px; }
.bm-hero h2 { font-size: 44px; }

/* kassza-sáv */
.bm-bank b.fpv { font-size: 16px; }

/* szűrők */
.bm-filters { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.bm-filters .cm-sorts { margin: 0; padding: 0; mask-image: none; }
.bm-seg { justify-self: start; flex-wrap: wrap; }
.bm-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-nums .cm-field input { height: 38px; font-size: 14px; font-family: var(--f-mono); }
.cm-chip .lg-cr { margin-right: 2px; }
.cm-chip[aria-checked="true"] .lg-cr { background: var(--on-paper); }
.cm-chip[aria-checked="true"] .lg-cr.nf { background: repeating-linear-gradient(-45deg, var(--on-paper) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 0 1px var(--on-paper); }

/* a nyitott Klán-menü (z 70) fölött is látszódjon a rendszerüzenet és az értesítés (túllicitálás, lezárás) */
body:has(#clanMenu:not([hidden])) #toast, body:has(#clanMenu:not([hidden])) #nqDock { z-index: 75; }

/* lista-sor portréval */
.bm-list li, .bm-v .cm-list li.bm-row { gap: 12px; }
.bm-row .cm-nm b { display: flex; align-items: center; gap: 7px; }
.bm-row.own .cm-nm b { color: var(--light); }
.bm-row.lead { box-shadow: inset 2px 0 0 var(--light); }
.bm-pt { flex: none; position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, rgba(245, 242, 236, .10), rgba(245, 242, 236, .02)); box-shadow: inset 0 0 0 1px var(--line-2); }
.bm-pt img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.bm-pt i { font-style: normal; font-family: var(--f-disp); font-weight: 900; font-size: 20px; color: var(--muted); }
.bm-pt.big { width: 132px; height: 132px; border-radius: var(--r); }
.bm-pt.big i { font-size: 44px; }
.bm-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.bm-k, .bm-flag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--r-xs); font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.bm-k.auc { background: var(--ink); color: var(--on-paper); box-shadow: none; }
.bm-k.sys { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.bm-flag.lead { color: var(--light); box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .6); }
.bm-flag.out { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(242, 99, 99, .5); }
.bm-deal { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.bm-deal.good { color: var(--acc); }
.bm-deal.high { color: var(--bad); }
.bm-v time[data-ends] { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.bm-v time[data-ends].hot { color: var(--light); }
.bm-v .cm-val small { max-width: 190px; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* részletek */
.bm-hero2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: end; }
.bm-hero2 small { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bm-hero2 h2 { margin: 6px 0 4px; font-family: var(--f-disp); font-weight: 900; font-size: 40px; line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.bm-hero2 p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.bm-stats b { font-size: 14px; }
.bm-act { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line-2); }
.bm-act.sell { box-shadow: inset 0 0 0 1px var(--line-3); }
.bm-act-h { display: grid; gap: 3px; }
.bm-act-h small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bm-act-h > b:not(.fpv) { font-family: var(--f-mono); font-weight: 500; font-size: 18px; }
.bm-act-h span { font-size: 12.5px; color: var(--ink-2); }
.bm-lead { box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .55); color: var(--light); }
.bm-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: end; }
.bm-step .cm-btn { height: 44px; padding: 0; }
.bm-step .cm-field input { text-align: center; font-family: var(--f-mono); font-size: 18px; }
.bm-net { margin: 0; font-size: 13.5px; color: var(--ink); }
.bm-net.bad { color: var(--bad); }
.bm-clans { max-height: 136px; overflow-y: auto; scrollbar-width: thin; }
.bm-est { display: grid; gap: 10px; }
.bm-est > div { display: grid; gap: 2px; }
.bm-est small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bm-est dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bm-est dl > div { display: grid; gap: 4px; padding: 9px 10px; background: var(--bg); min-width: 0; }
.bm-est dt { font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.bm-est dd { margin: 0; font-family: var(--f-mono); font-size: 14px; }

/* grafikonok */
.bm-chart { width: 100%; height: auto; display: block; overflow: visible; }
.bm-chart path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bm-chart circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.bm-chart circle.auc { fill: var(--ink); }
.bm-chart circle.sys { stroke: var(--muted); }
.bm-chart line.est { stroke: var(--light); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.bm-idx { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.bm-idx i { flex: 1 1 0; max-width: 22px; min-width: 3px; background: rgba(245, 242, 236, .5); border-radius: 1px 1px 0 0; }
.bm-idx i:hover { background: var(--ink); }
.bm-idx .ref { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--light); pointer-events: none; }

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .cm-tabs { padding: 0 6px; }
  .cm-tabs button { font-size: 14px; padding: 0 2px; }
  .bm-hero h2 { font-size: 34px; }
  .bm-pt { width: 48px; height: 48px; }
  .bm-pt.big { width: 104px; height: 104px; }
  .bm-hero2 h2 { font-size: 30px; }
  .bm-est dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-v .cm-val small { max-width: 120px; }
  .bm-filters { padding: 10px; }
}
