.bp-header {
    margin: 8px 0 14px;
    line-height: 1.5;
    text-align: center;
    font-size: 13px;
}

.bp-header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #3d4558;
    background: linear-gradient(180deg, #1a1f2a 0%, #12151c 100%);
}

.bp-header-meta strong {
    color: #fcd330;
}

.bp-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: url(/images/graphics/h/bg_carb.png) repeat;
    padding: 10px 30px;
    color: white;
}

/* --- Горизонтальная полоска уровней --- */
.bp-strip-outer {
    margin: 14px 0 18px;
    border: 1px solid #3d4558;
    background: linear-gradient(180deg, #161b24 0%, #0e1118 100%);
    padding: 16px 12px 14px;
    min-height: 320px;
}

.bp-xp-progress {
    margin: 0 4px 14px;
    padding: 10px 12px;
    border: 1px solid #5a4a28;
    border-radius: 4px;
    background: linear-gradient(180deg, #1e2430 0%, #141820 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bp-xp-progress-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #b8c0d0;
}

.bp-xp-progress-title {
    font-weight: bold;
    color: #fcd330;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.bp-xp-progress-values strong {
    color: #ffe566;
    font-size: 14px;
}

.bp-xp-progress-tier {
    color: #9aa3b5;
    font-size: 11px;
}

.bp-xp-progress-track {
    height: 18px;
    background: #1a1f28;
    border: 2px solid #3d4558;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.bp-xp-progress-fill {
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #7a5c10 0%, #fcd330 45%, #ffe566 100%);
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(252, 211, 48, 0.45);
    transition: width 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.bp-xp-progress-pct {
    font-size: 10px;
    font-weight: bold;
    color: #1a1208;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.bp-strip-hint {
    text-align: center;
    font-size: 11px;
    color: #9aa3b5;
    margin: 0 0 8px;
}

.bp-strip-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #c9a227 #2a3140;
    scrollbar-width: thin;
    padding: 6px 6px 14px;
    min-height: 240px;
}

.bp-strip-scroll::-webkit-scrollbar {
    height: 8px;
}

.bp-strip-scroll::-webkit-scrollbar-track {
    background: #2a3140;
    border-radius: 4px;
}

.bp-strip-scroll::-webkit-scrollbar-thumb {
    background: #c9a227;
    border-radius: 4px;
}

.bp-strip-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    min-width: min-content;
    padding: 8px 4px 0;
}

/* Полоса опыта под квадратами */
.bp-xp-rail {
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: 20px;
    height: 14px;
    background: #1a1f28;
    border-radius: 7px;
    border: 2px solid #4a5568;
    z-index: 0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 8px rgba(252, 211, 48, 0.08);
}

.bp-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #7a5c10 0%, #fcd330 50%, #ffe566 100%);
    border-radius: 5px;
    transition: width 0.35s ease;
    min-width: 0;
    box-shadow: 0 0 8px rgba(252, 211, 48, 0.5);
}

/* Квадрат уровня */
.bp-tier-node {
    position: relative;
    z-index: 1;
    flex: 0 0 100px;
    width: 100px;
    margin: 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-tier-node::after {
    content: '';
    position: absolute;
    bottom: 218px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3d4558;
    border: 2px solid #5a6478;
    z-index: 2;
}

.bp-tier-node.bp-tier-reached::after {
    background: #fcd330;
    border-color: #ffe566;
    box-shadow: 0 0 6px rgba(252, 211, 48, 0.5);
}

.bp-tier-node.bp-tier-current::after {
    width: 14px;
    height: 14px;
    background: #fff;
    border-color: #fcd330;
    box-shadow: 0 0 10px rgba(252, 211, 48, 0.8);
}

.bp-tier-level {
    font-size: 12px;
    font-weight: bold;
    color: #9aa3b5;
    margin-bottom: 6px;
    line-height: 1;
}

.bp-tier-current .bp-tier-level {
    color: #fcd330;
    font-size: 13px;
}

.bp-tier-card {
    width: 100%;
    min-height: 140px;
    border: 2px solid #3d4558;
    border-radius: 4px;
    background: linear-gradient(180deg, #222836 0%, #181c26 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bp-tier-node.bp-tier-locked .bp-tier-card {
    opacity: 0.82;
    filter: grayscale(0.12);
}

.bp-tier-node.bp-tier-current .bp-tier-card {
    border-color: #fcd330;
    box-shadow: 0 0 12px rgba(252, 211, 48, 0.25);
}

.bp-tier-node.bp-tier-reached:not(.bp-tier-current) .bp-tier-card {
    border-color: #6b5a2a;
}

.bp-reward-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    line-height: 1.25;
    gap: 3px;
    min-height: 60px;
}

.bp-reward-slot + .bp-reward-slot {
    border-top: 1px solid #3d4558;
}

.bp-reward-free {
    background: rgba(40, 50, 70, 0.35);
}

.bp-reward-premium {
    background: rgba(80, 60, 20, 0.2);
}

.bp-reward-track-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7a8499;
}

.bp-reward-premium .bp-reward-track-label {
    color: #c9a227;
}

.bp-reward-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.bp-reward-icon-currency {
    font-size: 11px;
    font-weight: bold;
    color: #fcd330;
    line-height: 1.2;
    word-break: break-word;
}

.bp-reward-label {
    color: #c8d0de;
    font-size: 9px;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bp-reward-claimed {
    color: #8fdc8f;
    font-weight: bold;
    font-size: 10px;
}

.bp-reward-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.bp-reward-preview-locked .bp-reward-icon,
.bp-reward-preview-locked .bp-reward-icon-currency {
    opacity: 0.75;
}

.bp-reward-preview-locked .bp-reward-label {
    color: #9aa3b5;
}

.bp-reward-lock-badge {
    font-size: 11px;
    line-height: 1;
    margin-top: 1px;
    opacity: 0.95;
}

.bp-claim-btn {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1.2;
    border: 1px solid #c9a227;
    background: #2a2418;
    color: #fcd330;
    cursor: pointer;
    border-radius: 2px;
}

.bp-claim-btn:hover {
    background: #3d3420;
    filter: brightness(1.1);
}

.bp-claim-form {
    margin: 0;
    padding: 0;
}

.bp-section-title {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: bold;
    color: #fcd330;
    text-align: center;
}

.bp-quest-xp-cap {
    margin: 0 0 6px;
    font-size: 12px;
    color: #9aa8bc;
}

.bp-quest-xp-cap strong {
    color: #fcd330;
}

.bp-quest-xp-cap-full {
    color: #c9a227;
}

.bp-quest-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    border: 1px solid #3d4558;
    background: #12151c;
}

.bp-quest-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #2a3140;
    font-size: 13px;
    line-height: 1.4;
}

.bp-quest-list li:last-child {
    border-bottom: none;
}

.bp-quest-done {
    color: #8fdc8f;
}

.bp-quest-xp {
    color: #fcd330;
    font-weight: bold;
    white-space: nowrap;
}

.bp-quest-done .bp-quest-xp {
    color: #a8d4a8;
}

.bp-quest-done-mark {
    margin-left: 4px;
}

.bp-quest-premium {
    background: rgba(201, 162, 39, 0.08);
}

.bp-quest-premium-badge {
    display: inline-block;
    margin: 0 4px;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1208;
    background: linear-gradient(90deg, #fcd330, #ffe566);
    vertical-align: middle;
}

.bp-chest-alert {
    margin: 10px 0;
    padding: 8px 10px;
    border: 1px solid #c9a227;
    background: rgba(201, 162, 39, 0.12);
    text-align: center;
    font-size: 13px;
}

.bp-chest-alert a {
    color: #fcd330;
    font-weight: bold;
}

/* --- Каталог сундуков --- */
.bp-chest-catalog-hint {
    text-align: center;
    font-size: 12px;
    color: #9aa3b5;
    margin: 0 0 10px;
    line-height: 1.4;
}

.bp-chest-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.bp-chest-catalog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid #3d4558;
    background: linear-gradient(180deg, #1e2430 0%, #141820 100%);
    cursor: pointer;
    color: #c8d0de;
    font-family: inherit;
    border-radius: 4px;
}

.bp-chest-catalog-item:hover,
.bp-chest-trigger-active.bp-chest-catalog-item {
    border-color: #c9a227;
    background: linear-gradient(180deg, #2a2418 0%, #1a1810 100%);
}

.bp-chest-catalog-premium {
    border-color: #5a4a28;
}

.bp-chest-catalog-icon {
    width: 40px;
    height: auto;
}

.bp-chest-catalog-name {
    font-size: 11px;
    font-weight: bold;
    color: #fcd330;
    text-align: center;
    line-height: 1.2;
}

.bp-chest-catalog-track {
    font-size: 9px;
    text-transform: uppercase;
    color: #7a8499;
}

.bp-chest-loot-panel {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #c9a227;
    background: linear-gradient(180deg, #1a1f2a 0%, #10141c 100%);
    border-radius: 4px;
}

.bp-chest-loot-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.bp-chest-loot-panel-icon {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.bp-chest-loot-title {
    margin: 0 0 6px;
    font-size: 15px;
    color: #fcd330;
}

.bp-chest-loot-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #b8c0d0;
}

.bp-chest-loot-subtitle {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: bold;
    color: #9aa3b5;
}

.bp-chest-loot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.bp-loot-card {
    border: 1px solid #3d4558;
    background: linear-gradient(180deg, #222836 0%, #181c26 100%);
    border-radius: 4px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100px;
    justify-content: center;
    gap: 6px;
}

.bp-loot-card-car {
    background: #3e3e3e;
    min-height: 150px;
    padding-bottom: 12px;
}

.bp-loot-car-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.bp-loot-car-name {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: #e8ecf4;
    line-height: 1.25;
}

.bp-loot-car-class {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #c8d0de;
}

.bp-loot-car-class img {
    width: auto;
    height: 16px;
    vertical-align: middle;
}

.bp-loot-car-class strong {
    font-weight: bold;
}

.bp-loot-item-img {
    width: 48px;
    height: auto;
    object-fit: contain;
}

.bp-loot-item-name {
    font-size: 11px;
    color: #e0e6f0;
    line-height: 1.3;
}

.bp-loot-currency {
    font-size: 14px;
    font-weight: bold;
    color: #fcd330;
    line-height: 1.3;
    padding: 4px;
}

.bp-chest-trigger {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 5px;
}

.bp-chest-trigger-inline {
    line-height: 0;
}

.bp-chest-trigger-inline:hover .bp-reward-icon {
    filter: brightness(1.2);
}

.bp-chest-trigger-text.bp-reward-label {
    background: none;
    border: none;
    color: #c8d0de;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
    max-width: 92px;
}

.bp-chest-trigger-text.bp-reward-label:hover {
    color: #fcd330;
}

.bp-chest-trigger-active.bp-chest-trigger-text {
    color: #fcd330;
}

.bp-car-reward {
    margin: 12px 0 16px;
    padding: 14px 12px;
    border: 1px solid #3d4558;
    background: linear-gradient(180deg, #161b24 0%, #0e1118 100%);
    text-align: center;
}

.bp-car-reward-tier {
    margin: 0 0 12px;
    font-size: 13px;
    color: #c8d0de;
}

.bp-car-reward-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #5a4a28;
    background: #3e3e3e;
    border-radius: 4px;
}

.bp-car-reward-img {
    max-width: 220px;
}

.bp-car-reward-card .car-with-wheels.bp-car-reward-img,
.bp-car-reward-card .car-display-fallback.bp-car-reward-img {
    --car-sprite-height: 72px;
    align-self: center;
}

.bp-car-reward-name {
    margin: 0;
    font-size: 15px;
    color: #fcd330;
}

.bp-car-reward-hint {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: bold;
    color: #e8ecf4;
}

.bp-car-reward-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bp-car-reward-actions form {
    margin: 0;
}

.bp-car-reward-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9aa3b5;
    line-height: 1.4;
}

a.bp-claim-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
