/* Профиль — режим букмекера (цвета РПЛ: красный accent, зелёный, янтарный) */

.profile-page--bk .profile-cover {
    background: linear-gradient(135deg, #141519 0%, #2a1218 50%, #1a1c23 100%);
}

.profile-page--bk .profile-xp__track i {
    background: linear-gradient(90deg, var(--accent), var(--amber));
}

/* Полоска баланса + мета */
.profile-bk-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px auto 4px;
    max-width: 420px;
}

.profile-bk-wallet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-active);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.profile-bk-wallet:hover {
    border-color: var(--green);
    background: var(--green-soft);
}

.profile-bk-wallet__label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-bk-wallet strong {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
}

.profile-bk-wallet__arrow {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.profile-bk-strip__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-bk-strip__tag {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.profile-bk-strip__tag--live {
    background: var(--red-soft);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--live-dot);
}

/* Кнопки действий */
.profile-actions--bk {
    margin-top: 14px;
}

.profile-actions--bk .profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.profile-actions--bk .profile-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
}

.profile-actions--bk .profile-btn.primary:hover {
    filter: brightness(1.08);
    opacity: 1;
}

.profile-btn--line {
    border-color: rgba(230, 57, 70, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.profile-btn--line:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--accent);
}

.profile-btn--wallet {
    border-color: rgba(74, 222, 128, 0.3);
    background: var(--green-soft);
    color: var(--green);
    font-weight: 600;
}

.profile-btn--wallet:hover {
    background: rgba(74, 222, 128, 0.18);
    border-color: var(--green);
}

.profile-stat-item--accent .profile-stat-value {
    color: var(--accent);
}

.profile-stat-item--pending .profile-stat-value {
    color: var(--amber);
}

/* Карточки ставок */
.profile-bets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-bet-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.profile-bet-item__link {
    display: block;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.profile-bet-item--won { border-left: 3px solid var(--green); }
.profile-bet-item--lost { border-left: 3px solid var(--red); }
.profile-bet-item--pending { border-left: 3px solid var(--amber); }

.profile-bet-item__link:hover {
    background: var(--accent-soft);
}

.profile-bet-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-bet-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-bet-item__id {
    font-weight: 700;
    font-size: 0.88rem;
}

.profile-bet-item__type {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
}

.profile-bet-item__type--express {
    background: var(--amber-soft);
    color: var(--amber);
}

.profile-bet-item__status {
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-bet-item__status--pending { background: var(--amber-soft); color: var(--amber); }
.profile-bet-item__status--won { background: var(--green-soft); color: var(--green); }
.profile-bet-item__status--lost { background: var(--red-soft); color: var(--red); }

.profile-bet-item__dots {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.profile-bet-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-active);
}

.profile-bet-item__dot--pending { background: var(--amber); }
.profile-bet-item__dot--won { background: var(--green); }
.profile-bet-item__dot--lost { background: var(--red); }

.profile-bet-item__legs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.profile-bet-item__leg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.profile-bet-item__leg-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.profile-bet-item__leg em {
    font-style: normal;
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
}

.profile-bet-item__leg--more {
    padding-left: 23px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.profile-bet-item__foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

@media (min-width: 540px) {
    .profile-bet-item__foot {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.profile-bet-item__amounts {
    display: flex;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.profile-bet-item__win--pending { color: var(--accent); font-weight: 700; }
.profile-bet-item__win--plus { color: var(--green); font-weight: 700; }
.profile-bet-item__win--minus { color: var(--red); font-weight: 700; }

/* Аналитика */
.profile-bk-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .profile-bk-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profile-bk-summary-card {
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.profile-bk-summary-card span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.profile-bk-summary-card strong {
    font-family: var(--font-mono);
    font-size: 1.05rem;
}

.profile-bk-summary-card strong.green { color: var(--green); }
.profile-bk-summary-card strong.red { color: var(--red); }
.profile-bk-summary-card strong.amber { color: var(--amber); }
.profile-bk-summary-card strong.accent { color: var(--accent); }

.profile-bk-type-bars {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.profile-bk-type-bar {
    flex: 1;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.profile-bk-type-bar span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.profile-bk-type-bar strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-filter-chip.bet-filter.express.active {
    border-color: var(--amber);
    color: var(--amber);
    background: var(--amber-soft);
}

.profile-filter-chip.bet-filter.single.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
