/* =====================================================================================
   Profil jucator (user/profile) — identitate, detalii cont grupate, masini ca grila de carduri.
   Totul sub .bh-profile (randul principal al paginii). Culorile vin din tema liquid glass
   (bh-glass.css, html.bh-glass) cu fallback-uri pentru aspectul clasic (Zenix dark).
   Fara animatii care lasa transform pe containere (fereastra fisei e position:fixed).
   ===================================================================================== */

.bh-profile {
    --bp-pane-a: var(--g-pane-a, rgba(255, 255, 255, .055));
    --bp-pane-b: var(--g-pane-b, rgba(255, 255, 255, .02));
    --bp-in: var(--g-pane-in, rgba(255, 255, 255, .03));
    --bp-edge: var(--g-edge, rgba(255, 255, 255, .09));
    --bp-edge-2: var(--g-edge-2, rgba(255, 255, 255, .15));
    --bp-strong: var(--g-strong, #ffffff);
    --bp-text: var(--g-text, #e6ecea);
    --bp-text-2: var(--g-text-2, #c3cdc9);
    --bp-muted: var(--g-muted, #8f9d98);
    --bp-green: var(--g-green, #17c964);
    --bp-green-d: var(--g-green-d, #13b653);
    --bp-green-soft: var(--g-green-soft, rgba(23, 201, 100, .14));
    --bp-green-edge: var(--g-green-edge, rgba(23, 201, 100, .38));
    --bp-gold: var(--g-gold, #f3bd3e);
    --bp-red: var(--g-red, #ff5c6c);
    --bp-tint: var(--g-tint, rgba(255, 255, 255, .045));
    --bp-tint-2: var(--g-tint-2, rgba(255, 255, 255, .085));
    --bp-line: var(--g-line, rgba(255, 255, 255, .07));
    --bp-r: var(--g-r, 12px);
    --bp-r-lg: var(--g-r-lg, 16px);
    --bp-r-xl: var(--g-r-xl, 20px);
    --bp-hi: var(--g-hi, inset 0 1px 0 rgba(255, 255, 255, .08));
    --bp-shadow: var(--g-shadow, 0 12px 32px -14px rgba(0, 0, 0, .55));
    --bp-stage: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%);
}
html.bh-glass[data-bh-theme="light"] .bh-profile {
    --bp-stage: linear-gradient(180deg, rgba(15, 26, 23, .10), rgba(15, 26, 23, .02) 80%);
}

.bh-profile .bhp-card,
.bh-profile .bhp-main { height: auto !important; }
.bh-profile [class^="bhp-"], .bh-profile [class*=" bhp-"] { box-sizing: border-box; }
.bh-profile .bhp-muted { color: var(--bp-muted); }
.bh-profile .bhp-k { display: block; font-size: 12px; font-weight: 600; color: var(--bp-muted); letter-spacing: .01em; }
.bh-profile .bhp-mono { font-variant-numeric: tabular-nums; }
.bh-profile .bhp-linkish { color: var(--bp-green); font-weight: 700; }

/* iconitele din butoane nu primesc click: admin.min.js / production.js citesc e.target (id / data-production) */
.bh-profile .bhp-actions .btn > i,
.bh-profile .bhp-act > i,
.bh-profile .bhp-act > span { pointer-events: none; }

/* ---------- identitate (coloana stanga) ---------- */
.bh-profile .bhp-id .card-body { padding: 20px; }
.bh-profile .bhp-id-top { display: flex; align-items: center; gap: 16px; }
.bh-profile .bhp-avatar {
    position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 22px;
    background: var(--bp-tint); border: 1px solid var(--bp-edge); overflow: hidden;
}
.bh-profile .bhp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-profile .bhp-avatar::after {
    content: ""; position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--bp-red); box-shadow: 0 0 0 3px var(--g-card-solid, #1b1f24);
}
.bh-profile .bhp-avatar.is-on::after { background: var(--bp-green); }
.bh-profile .bhp-avatar.is-afk::after { background: var(--bp-gold); }
.bh-profile .bhp-id-main { min-width: 0; }
.bh-profile .bhp-name {
    margin: 0 0 6px; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
    color: var(--bp-strong); text-transform: none; overflow-wrap: anywhere;
}
.bh-profile .bhp-name > .fa-circle { display: none; } /* bulina e pe avatar; statusBubble ramane in DOM */
.bh-profile .bhp-presence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.bh-profile .bhp-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; border: 1px solid var(--bp-edge); background: var(--bp-tint); color: var(--bp-text);
}
.bh-profile .bhp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bh-profile .bhp-pill.is-on { color: var(--bp-green); border-color: var(--bp-green-edge); background: var(--bp-green-soft); }
.bh-profile .bhp-pill.is-afk { color: var(--bp-gold); }
.bh-profile .bhp-pill.is-off { color: var(--bp-red); }

.bh-profile .bhp-badges { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.bh-profile .bhp-badges .badge { margin: 0 !important; }
.bh-profile .bhp-badges > div { flex-basis: 100%; }
.bh-profile .bhp-badges > div .badge { width: auto !important; }

.bh-profile .bhp-level { margin-top: 16px; }
.bh-profile .bhp-level-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.bh-profile .bhp-level-n { color: var(--bp-text-2); }
.bh-profile .bhp-level-n b { color: var(--bp-strong); font-size: 18px; font-weight: 800; margin-left: 2px; }
.bh-profile .bhp-bar { height: 8px; border-radius: 99px; background: var(--bp-tint-2); overflow: hidden; }
.bh-profile .bhp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bp-green-d), var(--bp-green)); }

.bh-profile .bhp-actions {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bp-line);
    display: flex; flex-wrap: wrap; gap: 6px;
}
.bh-profile .bhp-actions .btn { float: none !important; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.bh-profile .bhp-complain { margin-top: 12px; }

.bh-profile .bhp-staffedit .card-body { padding: 14px 16px; display: grid; gap: 12px; }
.bh-profile .bhp-inline-form { margin: 0; }
.bh-profile .bhp-inline-form .bhp-k { margin-bottom: 4px; }
.bh-profile .bhp-inline-form .input-group { flex-wrap: nowrap; }
.bh-profile .bhp-inline-form .input-group .form-control { min-width: 0; }
.bh-profile .bhp-inline-form .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 100%; }

.bh-profile .bhp-backpack .card-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.bh-profile .bhp-bp-name { color: var(--bp-strong); font-weight: 700; font-size: 16px; }
.bh-profile .bhp-bp-lvl { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 8px; background: var(--bp-green-soft); color: var(--bp-green); font-size: 12px; font-weight: 800; }

/* ---------- tab-uri: compacte pe ecrane mici ---------- */
@media (max-width: 575.98px) {
    .bh-profile .profile-tab { gap: 4px; }
    .bh-profile .profile-tab .nav-item { flex: 1 1 calc(50% - 4px); }
    .bh-profile .profile-tab .nav-link { padding: 8px 6px; font-size: 12.5px; }
}

/* ---------- detalii cont ---------- */
.bh-profile .bhp-details { display: grid; gap: 14px; }
.bh-profile .bhp-wealth {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
    padding: 0; overflow: hidden; background: var(--bp-line);
}
.bh-profile .bhp-money { padding: 14px 16px; background: var(--g-card-solid, #1d2329); min-width: 0; }
html.bh-glass .bh-profile .bhp-money { background: var(--bp-in); }
.bh-profile .bhp-num {
    display: block; margin-top: 4px; font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em;
    color: var(--bp-strong); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bh-profile .bhp-num i { font-style: normal; font-weight: 700; font-size: .7em; color: var(--bp-muted); margin-left: 2px; }
.bh-profile .bhp-money.is-gems .bhp-num { color: #5ad1ff; }
.bh-profile .bhp-money.is-pp .bhp-num { color: var(--bp-gold); }

.bh-profile .bhp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bh-profile .bhp-group {
    border: 1px solid var(--bp-edge); border-radius: var(--bp-r-lg);
    background: linear-gradient(180deg, var(--bp-pane-a), var(--bp-pane-b));
    box-shadow: var(--bp-hi); padding: 14px 16px; min-width: 0;
}
.bh-profile .bhp-gt { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--bp-strong); display: flex; align-items: center; gap: 8px; text-transform: none; }
.bh-profile .bhp-gt i { color: var(--bp-green); width: 16px; text-align: center; }
.bh-profile .bhp-dl { margin: 0; }
.bh-profile .bhp-dl > div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 7px 0; border-top: 1px solid var(--bp-line); font-size: 13px;
}
.bh-profile .bhp-dl > div:first-child { border-top: 0; }
.bh-profile .bhp-dl > div[style*="display: none"] { display: none !important; }
.bh-profile .bhp-dl dt { font-weight: 500; color: var(--bp-muted); margin: 0; flex: 0 1 auto; }
.bh-profile .bhp-dl dd { margin: 0; color: var(--bp-strong); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bh-profile .bhp-dl dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--bp-edge-2); text-underline-offset: 3px; }
.bh-profile .bhp-dl dd a.text-muted { text-decoration: none; color: var(--bp-text-2) !important; font-weight: 500; }
.bh-profile .bhp-dl.is-tight > div { padding: 5px 0; }
.bh-profile .bhp-sens span[tabindex] { outline: none; border-radius: 4px; }
.bh-profile .bhp-sens span[tabindex]:focus-visible { box-shadow: 0 0 0 2px var(--bp-green-edge); }
.bh-profile .bhp-sens .fa-edit { margin-left: 6px; }

.bh-profile .bhp-meter { display: inline-flex; align-items: center; gap: 8px; }
.bh-profile .bhp-meter-bar { width: 54px; height: 6px; border-radius: 9px; background: var(--bp-tint-2); overflow: hidden; display: inline-block; }
.bh-profile .bhp-meter-bar > span { display: block; height: 100%; background: var(--bp-green); border-radius: inherit; }
.bh-profile .bhp-meter.is-warn b { color: var(--bp-gold); }
.bh-profile .bhp-meter.is-warn .bhp-meter-bar > span { background: var(--bp-gold); }
.bh-profile .bhp-meter.is-bad b { color: var(--bp-red); }
.bh-profile .bhp-meter.is-bad .bhp-meter-bar > span { background: var(--bp-red); }

.bh-profile .bhp-more {
    margin-top: 8px; width: 100%; border: 1px dashed var(--bp-edge-2); background: transparent; color: var(--bp-text-2);
    border-radius: var(--bp-r); padding: 7px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.bh-profile .bhp-more:hover { color: var(--bp-strong); background: var(--bp-tint); }

.bh-profile .bhp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.bh-profile .bhp-sec-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--bp-strong); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.bh-profile .bhp-count {
    display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; text-align: center;
    background: var(--bp-green-soft); color: var(--bp-green); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bh-profile .bhp-crates-wrap { margin-top: 22px; }

/* ---------- proprietati: sumar ---------- */
.bh-profile .bhp-props { display: grid; gap: 22px; }
.bh-profile .bhp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bh-profile .bhp-sum-item {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    text-align: left; padding: 12px 14px; border-radius: var(--bp-r-lg); border: 1px solid var(--bp-edge);
    background: linear-gradient(180deg, var(--bp-pane-a), var(--bp-pane-b)); color: var(--bp-strong); cursor: pointer; font: inherit;
}
.bh-profile .bhp-sum-item:hover { border-color: var(--bp-edge-2); }
.bh-profile .bhp-sum-item:focus-visible { outline: 2px solid var(--bp-green); outline-offset: 2px; }
.bh-profile .bhp-sum-item > i { grid-row: 1 / 3; font-size: 22px; color: var(--bp-green); width: 26px; text-align: center; }
.bh-profile .bhp-sum-item > span { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bh-profile .bhp-sum-item > span b { font-weight: 800; }
.bh-profile .bhp-sum-item > small { font-size: 12px; color: var(--bp-muted); font-weight: 600; }
.bh-profile .bhp-sum-item.is-none > i { color: var(--bp-muted); }
.bh-profile .bhp-sum-item.is-none > span { color: var(--bp-muted); }

/* ---------- masini: unelte ---------- */
.bh-profile .bhp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bh-profile .bhp-search { position: relative; flex: 1 1 220px; margin: 0; }
.bh-profile .bhp-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bp-muted); pointer-events: none; }
.bh-profile .bhp-toolbar input,
.bh-profile .bhp-toolbar select {
    height: 38px; border-radius: var(--bp-r); border: 1px solid var(--bp-edge); background: var(--g-input, rgba(0, 0, 0, .25));
    color: var(--bp-strong); font: inherit; font-size: 13px; padding: 0 12px;
}
.bh-profile .bhp-toolbar input { width: 100%; padding-left: 34px; }
.bh-profile .bhp-toolbar select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.bh-profile .bhp-toolbar select option { background: var(--g-option-bg, #1d2329); color: var(--bp-strong); }
.bh-profile .bhp-toolbar input:focus,
.bh-profile .bhp-toolbar select:focus { outline: none; border-color: var(--bp-green-edge); box-shadow: 0 0 0 3px var(--bp-green-soft); }
.bh-profile .bhp-view { display: inline-flex; border: 1px solid var(--bp-edge); border-radius: var(--bp-r); overflow: hidden; }
.bh-profile .bhp-view button { width: 40px; height: 36px; border: 0; background: transparent; color: var(--bp-muted); cursor: pointer; }
.bh-profile .bhp-view button.is-on { background: var(--bp-green-soft); color: var(--bp-green); }
.bh-profile .bhp-view button:focus-visible { outline: 2px solid var(--bp-green); outline-offset: -2px; }

/* ---------- masini: carduri ---------- */
.bh-profile .bhp-car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bh-profile .bhp-car {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--bp-edge); border-radius: var(--bp-r-xl); overflow: hidden;
    background: linear-gradient(180deg, var(--bp-pane-a), var(--bp-pane-b)); box-shadow: var(--bp-hi), var(--bp-shadow);
}
.bh-profile .bhp-car[hidden] { display: none !important; }
.bh-profile .bhp-car:hover { border-color: var(--bp-edge-2); }
.bh-profile .bhp-car-media {
    position: relative; aspect-ratio: 16 / 9; background: var(--bp-stage);
    display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--bp-line);
}
.bh-profile .bhp-car-media::after { /* umbra de podea sub masina */
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 12%; height: 10%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); pointer-events: none;
}
html.bh-glass[data-bh-theme="light"] .bh-profile .bhp-car-media::after { background: radial-gradient(closest-side, rgba(16, 40, 30, .22), transparent); }
.bh-profile .bhp-car-media img { position: relative; z-index: 1; max-width: 86%; max-height: 82%; object-fit: contain; }
.bh-profile .bhp-car-media img.is-missing { visibility: hidden; }
.bh-profile .bhp-car-flags { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.bh-profile .bhp-flag {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: rgba(8, 12, 13, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
}
.bh-profile .bhp-flag.is-fav { color: var(--bp-gold); }
.bh-profile .bhp-flag.is-market { color: #7fe0ff; }
.bh-profile .bhp-flag.is-auction { color: #ffcf6e; }
.bh-profile .bhp-flag.is-towed { color: #ff9aa4; }
.bh-profile .bhp-flag.is-garage { color: #a9f5c8; }

/* ECU: contor cu 4 trepte — elementul de recunoastere al cardului */
.bh-profile .bhp-ecu {
    position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 9px; border-radius: 10px; background: rgba(8, 12, 13, .78); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
.bh-profile .bhp-ecu-l { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.bh-profile .bhp-ecu b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bh-profile .bhp-ecu-seg { display: inline-flex; gap: 3px; }
.bh-profile .bhp-ecu-seg i { width: 7px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .18); transform: skewX(-12deg); }
.bh-profile .bhp-ecu-seg i.on { background: var(--bp-green); box-shadow: 0 0 8px rgba(23, 201, 100, .55); }
.bh-profile .bhp-ecu.is-bricked .bhp-ecu-seg i.on { background: var(--bp-red); box-shadow: none; }

.bh-profile .bhp-car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.bh-profile .bhp-car-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bh-profile .bhp-car-name { margin: 0; font-size: 15.5px; line-height: 1.25; font-weight: 800; color: var(--bp-strong); text-transform: none; overflow-wrap: anywhere; }
.bh-profile .bhp-car-id { font-size: 11.5px; color: var(--bp-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-profile .bhp-car-nick { margin-top: -4px; font-size: 12.5px; color: var(--bp-text-2); font-style: italic; }
.bh-profile .bhp-car-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* placuta: alb cu banda albastra, ca in joc */
.bh-profile .bhp-plate {
    display: inline-flex; align-items: center; height: 22px; padding: 0 8px 0 14px; position: relative;
    border-radius: 4px; background: #f4f6f5; color: #111a17; border: 1px solid #1c2a26;
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.bh-profile .bhp-plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: #1f4fbf; border-radius: 3px 0 0 3px; }

.bh-profile .bhp-cond {
    display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    border: 1px solid var(--bp-edge); background: var(--bp-tint); color: var(--bp-text);
    /* .vehicle-condition (clasa veche) poate avea stil global: il neutralizam aici */
    margin: 0 !important; width: auto !important;
}
.bh-profile .bhp-cond.is-perfect, .bh-profile .bhp-cond.is-divine { color: #ffd76a; border-color: rgba(255, 215, 106, .4); }
.bh-profile .bhp-cond.is-legendary { color: #ff9f43; border-color: rgba(255, 159, 67, .4); }
.bh-profile .bhp-cond.is-mythic { color: #ff6bd5; border-color: rgba(255, 107, 213, .4); }
.bh-profile .bhp-cond.is-epic { color: #b28cff; border-color: rgba(178, 140, 255, .4); }
.bh-profile .bhp-cond.is-rare { color: #5ab8ff; border-color: rgba(90, 184, 255, .4); }
.bh-profile .bhp-cond.is-excellent, .bh-profile .bhp-cond.is-better { color: var(--bp-green); border-color: var(--bp-green-edge); }
.bh-profile .bhp-cond.is-critical { color: var(--bp-red); border-color: rgba(255, 92, 108, .45); }
html.bh-glass[data-bh-theme="light"] .bh-profile .bhp-cond { filter: saturate(1.2) brightness(.78); }

.bh-profile .bhp-ban { font-size: 12px; font-weight: 700; color: var(--bp-red); }
.bh-profile .bhp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bh-profile .bhp-tags:empty { display: none; }
.bh-profile .bhp-tag {
    --c: var(--bp-text);
    display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 800;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
html.bh-glass[data-bh-theme="light"] .bh-profile .bhp-tag { color: color-mix(in srgb, var(--c) 70%, #000); }
.bh-profile .bhp-tag.is-rainbow {
    background-image: linear-gradient(to left, blue, green, yellow, orange, red); -webkit-background-clip: text; background-clip: text; color: transparent;
    border-color: var(--bp-edge);
}
.bh-profile .bhp-car-tag { font-size: 12px; }

.bh-profile .bhp-car-stats { margin: 2px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--bp-line); }
.bh-profile .bhp-car-stats > div { min-width: 0; }
.bh-profile .bhp-car-stats dt { font-size: 11.5px; font-weight: 600; color: var(--bp-muted); margin: 0; }
.bh-profile .bhp-car-stats dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 700; color: var(--bp-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bh-profile .bhp-colors { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bh-profile .bhp-colors small { font-size: 10.5px; font-weight: 700; color: var(--bp-muted); letter-spacing: .02em; }
.bh-profile .bhp-sw { display: inline-block; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--bp-edge-2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }

.bh-profile .bhp-car-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.bh-profile .bhp-car-actions .btn { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border-radius: 10px; }
.bh-profile .bhp-car-actions .bhp-act { width: 38px; padding-left: 0; padding-right: 0; }
.bh-profile .bhp-btn-main {
    flex: 1 1 auto; background: var(--bp-green-soft) !important; color: var(--bp-green) !important;
    border: 1px solid var(--bp-green-edge) !important; font-weight: 800;
}
.bh-profile .bhp-btn-main:hover { background: var(--bp-green) !important; color: var(--g-green-ink, #04130a) !important; }

/* lista: rand orizontal, compact */
.bh-profile .bhp-car-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.bh-profile .bhp-car-grid.is-list .bhp-car { flex-direction: row; border-radius: var(--bp-r-lg); }
.bh-profile .bhp-car-grid.is-list .bhp-car-media { flex: 0 0 200px; aspect-ratio: auto; min-height: 120px; border-bottom: 0; border-right: 1px solid var(--bp-line); }
.bh-profile .bhp-car-grid.is-list .bhp-car-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; grid-template-areas: "head stats actions" "meta stats actions" "tags stats actions"; column-gap: 16px; row-gap: 6px; align-items: start; }
.bh-profile .bhp-car-grid.is-list .bhp-car-head { grid-area: head; }
.bh-profile .bhp-car-grid.is-list .bhp-car-meta { grid-area: meta; }
.bh-profile .bhp-car-grid.is-list .bhp-tags { grid-area: tags; }
.bh-profile .bhp-car-grid.is-list .bhp-car-stats { grid-area: stats; border-top: 0; padding-top: 0; margin: 0; }
.bh-profile .bhp-car-grid.is-list .bhp-car-actions { grid-area: actions; margin: 0; padding: 0; flex-direction: column; align-items: stretch; }
.bh-profile .bhp-car-grid.is-list .bhp-car-actions .bhp-act { width: auto; }

.bh-profile .bhp-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 28px 16px; border: 1px dashed var(--bp-edge-2); border-radius: var(--bp-r-lg); color: var(--bp-muted);
}
.bh-profile .bhp-empty[hidden] { display: none; }
.bh-profile .bhp-empty i { font-size: 26px; color: var(--bp-muted); }
.bh-profile .bhp-empty p { margin: 0; color: var(--bp-text-2); font-weight: 600; }

/* ---------- casa / afacere / job ---------- */
.bh-profile .bhp-estate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bh-profile .bhp-prop {
    display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-width: 0;
    border: 1px solid var(--bp-edge); border-radius: var(--bp-r-lg);
    background: linear-gradient(180deg, var(--bp-pane-a), var(--bp-pane-b)); box-shadow: var(--bp-hi);
}
.bh-profile .bhp-prop header { display: flex; align-items: center; gap: 12px; }
.bh-profile .bhp-prop header small { display: block; font-size: 12px; color: var(--bp-muted); font-weight: 600; }
.bh-profile .bhp-prop header h5 { margin: 0; font-size: 15px; font-weight: 800; color: var(--bp-strong); text-transform: none; }
.bh-profile .bhp-prop-ic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bp-green-soft); color: var(--bp-green); font-size: 20px;
}
.bh-profile .bhp-prop-txt { margin: 0; font-size: 13px; color: var(--bp-text-2); overflow-wrap: anywhere; }
.bh-profile .bhp-prop-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.bh-profile .bhp-prop-actions .btn { margin: 0; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; }
.bh-profile .bhp-prop.is-empty { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; box-shadow: none; color: var(--bp-muted); min-height: 120px; }
.bh-profile .bhp-prop.is-empty i { font-size: 24px; }
.bh-profile .bhp-prop.is-empty p { margin: 0; font-weight: 600; }
.bh-profile .bhp-inv { margin: 0; }

/* in tema glass, butoanele "light" din carduri urmeaza sticla */
html.bh-glass .bh-profile .bhp-prop-actions .btn-light {
    background: var(--bp-tint) !important; border: 1px solid var(--bp-edge) !important; color: var(--bp-strong) !important;
}
html.bh-glass .bh-profile .bhp-prop-actions .btn-light:hover { background: var(--bp-tint-2) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .bh-profile .bhp-estate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .bh-profile .bhp-groups { grid-template-columns: 1fr; }
    .bh-profile .bhp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-profile .bhp-car-grid.is-list .bhp-car-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "meta" "tags" "stats" "actions"; }
    .bh-profile .bhp-car-grid.is-list .bhp-car-actions { flex-direction: row; }
    .bh-profile .bhp-car-grid.is-list .bhp-car-actions .bhp-act { width: 38px; flex: 0 0 38px; }
}
@media (max-width: 575.98px) {
    .bh-profile .bhp-id .card-body { padding: 16px; }
    .bh-profile .bhp-avatar { width: 68px; height: 68px; border-radius: 18px; }
    .bh-profile .bhp-name { font-size: 19px; }
    .bh-profile .bhp-wealth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-profile .bhp-num { font-size: 17px; }
    .bh-profile .bhp-money { padding: 12px; }
    .bh-profile .bhp-car-grid { grid-template-columns: 1fr; }
    .bh-profile .bhp-car-grid.is-list .bhp-car { flex-direction: column; }
    .bh-profile .bhp-car-grid.is-list .bhp-car-media { flex-basis: auto; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--bp-line); }
    /* poza masinii mai mica pe telefon: banda fixa de 116 px in loc de 16:9 pe toata latimea (~190 px), card mai compact */
    .bh-profile .bhp-car-grid .bhp-car-media,
    .bh-profile .bhp-car-grid.is-list .bhp-car-media { aspect-ratio: auto; height: 116px; min-height: 0; }
    .bh-profile .bhp-car-media img { max-height: 96px; max-width: 70%; }
    .bh-profile .bhp-car-media::after { bottom: 8%; }
    .bh-profile .bhp-car-flags { top: 8px; left: 8px; right: 8px; }
    .bh-profile .bhp-car-body { padding: 10px 12px 12px; gap: 6px; }
    .bh-profile .bhp-car-stats { gap: 6px 10px; padding-top: 8px; }
    .bh-profile .bhp-car-actions { padding-top: 8px; }
    .bh-profile .bhp-toolbar select { flex: 1 1 calc(50% - 4px); }
    .bh-profile .bhp-view { margin-left: auto; }
    .bh-profile .bhp-dl > div { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
    .bh-profile .bhp-car, .bh-profile .bhp-sum-item { transition: border-color .15s ease; }
}
@media (min-width: 1800px) {
    .bh-profile .bhp-wealth { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- masini: pret necumparat + aranjarea de catre proprietar (05.10.2026) ---------- */
.bh-profile .bhp-car-stats dd.bhp-reward { display: inline-flex; align-items: center; gap: 5px; color: var(--bp-gold); font-weight: 700; font-size: 12.5px; cursor: help; }
.bh-profile .bhp-car-stats dd.bhp-reward i { font-size: 11px; opacity: .9; }

.bh-profile .bhp-arrange-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--bp-r);
    border: 1px solid var(--bp-edge); background: transparent; color: var(--bp-text); font-weight: 700; font-size: 13px; cursor: pointer;
}
.bh-profile .bhp-arrange-btn:hover { border-color: var(--bp-green-edge); color: var(--bp-green); }
.bh-profile .bhp-arrange-btn:focus-visible { outline: 2px solid var(--bp-green); outline-offset: 2px; }
.bh-profile .bhp-arrange-btn.is-ok { border-color: var(--bp-green-edge); background: var(--bp-green-soft); color: var(--bp-green); }
.bh-profile .bhp-arrange-btn[hidden] { display: none; }

.bh-profile .bhp-arrange-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 14px; padding: 10px 12px;
    border: 1px solid var(--bp-green-edge); border-radius: var(--bp-r-lg); background: var(--bp-green-soft);
}
.bh-profile .bhp-arrange-bar[hidden] { display: none; }
.bh-profile .bhp-arrange-bar.is-busy { opacity: .7; pointer-events: none; }
.bh-profile .bhp-arrange-txt { margin: 0; flex: 1 1 260px; font-size: 13px; color: var(--bp-text); }
.bh-profile .bhp-arrange-txt i { color: var(--bp-green); margin-right: 4px; }
.bh-profile .bhp-arrange-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-profile .bhp-arrange-acts .btn { margin: 0; min-height: 34px; border-radius: 10px; }
.bh-profile .bhp-arrange-msg { flex: 1 0 100%; font-size: 12.5px; font-weight: 600; color: var(--bp-text-2); }
.bh-profile .bhp-arrange-msg:empty { display: none; }
.bh-profile .bhp-arrange-msg.is-bad { color: var(--bp-red); }

/* controalele de mutare: doar in modul de aranjare */
.bh-profile .bhp-arrange-ctl { display: none; }
.bh-profile .is-arranging .bhp-arrange-ctl {
    position: absolute; z-index: 3; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px; border-radius: 12px; background: rgba(8, 12, 13, .78); border: 1px solid rgba(255, 255, 255, .16);
}
.bh-profile .bhp-arrange-ctl button,
.bh-profile .bhp-arrange-ctl .bhp-grip {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; background: transparent; color: #fff; font-size: 14px;
}
.bh-profile .bhp-arrange-ctl .bhp-grip { width: 26px; color: rgba(255, 255, 255, .7); cursor: grab; }
.bh-profile .bhp-arrange-ctl button { cursor: pointer; }
.bh-profile .bhp-arrange-ctl button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.bh-profile .bhp-arrange-ctl button:focus-visible { outline: 2px solid var(--bp-green); outline-offset: 0; }
.bh-profile .bhp-arrange-ctl button:disabled { opacity: .3; cursor: default; }
.bh-profile .is-arranging .bhp-car { cursor: grab; border-style: dashed; border-color: var(--bp-edge-2); }
.bh-profile .is-arranging .bhp-car.is-drag { opacity: .45; border-color: var(--bp-green); }
.bh-profile .is-arranging .bhp-car-media img { -webkit-user-drag: none; }
.bh-profile .bhp-toolbar select:disabled,
.bh-profile .bhp-toolbar input:disabled { opacity: .5; cursor: not-allowed; }
@media (hover: none) {
    .bh-profile .is-arranging .bhp-arrange-ctl .bhp-grip { display: none; }
}
