.player-profile-card {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.player-profile-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.player-profile-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    flex: 1;
}

.player-profile-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.player-profile-card__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 72, 249, 0.35);
}

.player-profile-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 72, 249, 0.55), rgba(56, 189, 248, 0.35));
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.player-profile-card__legend {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(245, 197, 66, 0.45);
    color: #f5c542;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.player-profile-card__legend svg {
    width: 14px;
    height: 14px;
}

.player-profile-card__legend--gold {
    border-color: rgba(245, 197, 66, 0.45);
    color: #f5c542;
}

.player-profile-card__legend--purple {
    border-color: rgba(94, 72, 249, 0.45);
    color: var(--accent-light);
}

.player-profile-card__legend--blue {
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.player-profile-card__legend--green {
    border-color: rgba(52, 211, 153, 0.45);
    color: #34d399;
}

.player-profile-card__legend--teal {
    border-color: rgba(45, 212, 191, 0.45);
    color: #2dd4bf;
}

.player-profile-card__level-badge {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 15, 30, 0.96);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.player-profile-card__level-badge svg {
    color: #f5c542;
}

.player-profile-card__info {
    min-width: 0;
    flex: 1;
    padding-top: 4px;
}

.player-profile-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.player-profile-card__name {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
}

.player-profile-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-profile-card__badge--rank {
    color: #f5c542;
    background: rgba(245, 197, 66, 0.08);
    border-color: rgba(245, 197, 66, 0.25);
}

.player-profile-card__badge--verified {
    color: #8debb0;
    background: rgba(76, 175, 120, 0.12);
    border-color: rgba(76, 175, 120, 0.35);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.player-profile-card__club {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.player-profile-card__club a {
    color: var(--accent-light);
    font-weight: 600;
}

.player-profile-card__club a:hover {
    color: #fff;
}

.player-profile-card__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.player-profile-card__progress-xp {
    color: var(--accent-light);
    font-weight: 700;
    white-space: nowrap;
}

.player-profile-card__progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.player-profile-card__progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient);
    box-shadow: 0 0 16px rgba(94, 72, 249, 0.35);
}

.player-profile-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.player-profile-card__action {
    min-width: 148px;
    justify-content: center;
}

.player-profile-card__share[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.player-profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.player-profile-card__stat {
    padding: 16px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.player-profile-card__stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1;
    color: var(--text-primary);
}

.player-profile-card__stat span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.player-profile-card__stat--rating strong {
    color: #f5c542;
}

.player-profile-card__stat--bounty strong {
    color: var(--accent-light);
}

@media (max-width: 960px) {
    .player-profile-card__main {
        flex-direction: column;
    }

    .player-profile-card__actions {
        flex-direction: row;
        width: 100%;
    }

    .player-profile-card__action {
        flex: 1;
        min-width: 0;
    }

    .player-profile-card__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .player-profile-card {
        padding: 18px;
    }

    .player-profile-card__identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .player-profile-card__title-row {
        justify-content: center;
    }

    .player-profile-card__progress-head {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .player-profile-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-profile-card__stat:last-child {
        grid-column: 1 / -1;
    }
}
