/* =====================================================================================
   Pagina clanului (general/clan) — cardurile noi din partials/clan-extras: garaj ilegal +
   venit, arsenal, licitatii castigate. Totul sub .bh-clanx. Culori din tema liquid glass
   (bh-glass.css) cu fallback-uri. Fara animatii pe containere.
   ===================================================================================== */

.bh-clanx {
    --c-pane-a: var(--g-pane-a, rgba(255, 255, 255, .055));
    --c-pane-b: var(--g-pane-b, rgba(255, 255, 255, .02));
    --c-edge: var(--g-edge, rgba(255, 255, 255, .09));
    --c-strong: var(--g-strong, #ffffff);
    --c-text: var(--g-text, #e6ecea);
    --c-text-2: var(--g-text-2, #c3cdc9);
    --c-muted: var(--g-muted, #8f9d98);
    --c-green: var(--g-green, #17c964);
    --c-green-soft: var(--g-green-soft, rgba(23, 201, 100, .14));
    --c-green-edge: var(--g-green-edge, rgba(23, 201, 100, .38));
    --c-gold: var(--g-gold, #f3bd3e);
    --c-tint: var(--g-tint, rgba(255, 255, 255, .045));
    --c-tint-2: var(--g-tint-2, rgba(255, 255, 255, .085));
    --c-line: var(--g-line, rgba(255, 255, 255, .07));
    --c-r: var(--g-r, 12px);
    --c-r-lg: var(--g-r-lg, 16px);
    --c-gem: #7cc7ff;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 20px; align-items: start;
    margin-top: 6px; font-family: var(--g-font, inherit); color: var(--c-text);
}
html.bh-glass[data-bh-theme="light"] .bh-clanx { --c-gem: #1f6fb2; --c-gold: #8a5d00; }
.bh-clanx [class^="bhc-"], .bh-clanx [class*=" bhc-"] { box-sizing: border-box; }
.bh-clanx .bhc-card { height: auto !important; min-width: 0; }
.bh-clanx .bhc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--c-strong); }
.bh-clanx .bhc-h > i { color: var(--c-green); width: 18px; text-align: center; }
.bh-clanx .bhc-h-sub { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.bh-clanx .bhc-muted { margin: 0; color: var(--c-muted); font-size: 13px; }
.bh-clanx .bhc-green { color: var(--c-green); }
.bh-clanx small { display: block; font-size: 11.5px; font-weight: 600; color: var(--c-muted); }

/* ---------- garaj ---------- */
.bh-clanx .bhc-gar { padding: 12px 14px; border-radius: var(--c-r-lg); background: var(--c-tint); border: 1px solid var(--c-edge); }
.bh-clanx .bhc-gar + .bhc-gar { margin-top: 8px; }
.bh-clanx .bhc-gar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.bh-clanx .bhc-gar-name { min-width: 0; color: var(--c-strong); overflow-wrap: anywhere; }
.bh-clanx .bhc-chip {
    flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    color: var(--c-gold); background: var(--c-tint-2); border: 1px solid var(--c-edge);
}
.bh-clanx .bhc-kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.bh-clanx .bhc-kv b { color: var(--c-text); }
.bh-clanx .bhc-income {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-top: 12px; padding: 12px 14px;
    border-radius: var(--c-r-lg); background: var(--c-green-soft); border: 1px solid var(--c-green-edge);
}
.bh-clanx .bhc-income-r { text-align: right; }
.bh-clanx .bhc-big { display: block; font-size: 22px; line-height: 1.15; font-weight: 800; color: var(--c-strong); font-variant-numeric: tabular-nums; }
.bh-clanx .bhc-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11.5px; color: var(--c-muted); }

/* ---------- arsenal ---------- */
.bh-clanx .bhc-bar { height: 6px; border-radius: 99px; background: var(--c-tint-2); overflow: hidden; margin-bottom: 12px; }
.bh-clanx .bhc-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--c-green); }
.bh-clanx .bhc-weapons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 6px; }
.bh-clanx .bhc-weapons li {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
    padding: 8px 12px; border-radius: var(--c-r); background: var(--c-tint); border: 1px solid var(--c-edge); font-size: 13px;
}
.bh-clanx .bhc-w-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-2); }
.bh-clanx .bhc-w-n { flex: 0 0 auto; color: var(--c-strong); font-variant-numeric: tabular-nums; }

/* ---------- licitatii ---------- */
.bh-clanx .bhc-auc { list-style: none; margin: 0; padding: 0; }
.bh-clanx .bhc-auc li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.bh-clanx .bhc-auc li:first-child { border-top: 0; padding-top: 0; }
.bh-clanx .bhc-auc-l { min-width: 0; }
.bh-clanx .bhc-auc-l b { display: block; color: var(--c-strong); overflow-wrap: anywhere; }
.bh-clanx .bhc-auc-sum { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--c-green); text-align: right; }
.bh-clanx .bhc-cur-gems { color: var(--c-gem); }
.bh-clanx .bhc-cur-pp { color: var(--c-gold); }

/* ---------- clan points din quest-uri (lat pe tot randul) ---------- */
.bh-clanx .bhc-quest { grid-column: 1 / -1; }
.bh-clanx .bhc-qsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; margin-bottom: 14px; }
.bh-clanx .bhc-qsum > div { padding: 10px 14px; border-radius: var(--c-r-lg); background: var(--c-tint); border: 1px solid var(--c-edge); min-width: 0; }
.bh-clanx .bhc-qsum > div:first-child { background: var(--c-green-soft); border-color: var(--c-green-edge); }
.bh-clanx .bhc-qt { font-variant-numeric: tabular-nums; }
.bh-clanx .bhc-qr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 72px 64px; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--c-line); font-size: 13.5px; }
.bh-clanx .bhc-qr:not(:has(> :nth-child(4))) { grid-template-columns: 28px minmax(0, 1fr) 72px; }
.bh-clanx .bhc-qr-head { border-top: 0; padding-top: 0; font-size: 11.5px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.bh-clanx .bhc-qpos { color: var(--c-muted); font-weight: 700; }
.bh-clanx .bhc-qname { min-width: 0; }
.bh-clanx .bhc-qname a { display: block; font-weight: 700; color: var(--c-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-clanx .bhc-qname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-clanx .bhc-qn { text-align: right; color: var(--c-strong); }
.bh-clanx b.bhc-qn.bhc-green { color: var(--c-green); }
.bh-clanx .bhc-qr.is-zero { opacity: .6; }
.bh-clanx .bhc-quest .bhc-note { margin-top: 12px; line-height: 1.5; }
@media (max-width: 575.98px) {
    .bh-clanx { grid-template-columns: minmax(0, 1fr); }
    .bh-clanx .bhc-big { font-size: 19px; }
    .bh-clanx .bhc-qr { grid-template-columns: 22px minmax(0, 1fr) 56px 48px; gap: 8px; }
    .bh-clanx .bhc-qr:not(:has(> :nth-child(4))) { grid-template-columns: 22px minmax(0, 1fr) 56px; }
}
