/* Card agent personnalisée, ultra stylée, animée, suffixe xx */
.agent-cardxx {
	background: linear-gradient(180deg, rgba(103,58,183,0.08), #fff 90%);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(103,58,183,0.10);
	padding: 16px 14px 18px 14px;
	margin-bottom: 0;
	position: relative;
	animation: cardInxx 0.7s cubic-bezier(.2,.9,.2,1);
	border: 1.5px solid #ede7f6;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: hidden;
}

.agent-emoji-layer-xx {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.agent-emoji-xx {
	position: absolute;
	font-size: 1.05rem;
	animation: agentEmojiFloatxx 3.4s ease-in-out infinite;
	opacity: 0.78;
}

.agent-emoji-xx.e1 { top: 10px; right: 14px; animation-delay: 0s; }
.agent-emoji-xx.e2 { top: 46px; right: 42px; animation-delay: 0.9s; }
.agent-emoji-xx.e3 { bottom: 22px; right: 20px; animation-delay: 1.8s; }
.agent-emoji-xx.e4 { bottom: 56px; right: 56px; animation-delay: 2.6s; }

.agent-cardxx > *:not(.agent-emoji-layer-xx) {
	position: relative;
	z-index: 1;
}
.card-bannerxx {
	position: absolute;
	left: 18px;
	top: -22px;
	background: linear-gradient(90deg, #5e35b1, #7c4dff);
	color: #fff;
	padding: 7px 18px 7px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.01em;
	box-shadow: 0 6px 18px rgba(94,53,177,0.13);
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
	letter-spacing: 0.2px;
}
.badgexx {
	background: rgba(255,255,255,0.13);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.93em;
	color: #fff;
	font-weight: 600;
}
.card-headxx {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 2px;
}
.agent-avatarxx {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid #ede7f6;
	background: #f7f7fb;
	box-shadow: 0 6px 18px rgba(94,53,177,0.07);
}
.agent-infoxx { flex:1; min-width:0; }
.agent-namexx { margin:0; font-size:1.08rem; letter-spacing:0.2px; color: #311b92; font-weight: 700; }
.agent-rolexx { margin:0; color:#7c4dff; font-size:0.97rem; font-weight: 500; }
.card-bodyxx { display: flex; flex-direction: column; gap: 10px; }
.stats-rowxx {
	display: flex;
	gap: 10px;
	align-items: stretch;
	justify-content: space-between;
	flex-wrap: wrap;
}
.statxx {
	background: #f7f7fb;
	padding: 10px 0 8px 0;
	border-radius: 10px;
	flex: 1 1 110px;
	min-width: 90px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(94,53,177,0.04);
	margin: 0 2px;
}
.stat-valuexx { font-weight: 700; font-size: 1.08rem; color: #5e35b1; }
.stat-labelxx { font-size: 0.89rem; color: #7c4dff; margin-top: 4px; font-weight: 500; }
.progress-groupxx { margin-top: 6px; }
.progress-titlexx { display: block; color: #7c4dff; font-size: 0.97rem; margin-bottom: 6px; font-weight: 600; }
.progress-barxx {
	height: 13px;
	background: #ede7f6;
	border-radius: 999px;
	overflow: hidden;
	position: relative;
	margin-bottom: 2px;
}
.progress-fillxx {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #5e35b1 80%, #7c4dff 100%);
	box-shadow: 0 8px 28px rgba(103,58,183,0.13);
	transition: width 1.1s cubic-bezier(.2,.9,.2,1);
}
.progress-metaxx { display: flex; justify-content: space-between; margin-top: 8px; color: #7c4dff; font-size: 0.93rem; }
.row-actions-promoagentxx {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.actions-rowxx { display: flex; gap: 10px; margin-top: 6px; }
.btnxx {
	padding: 8px 12px;
	border-radius: 10px;
	cursor: pointer;
	border: none;
	font-weight: 600;
	background: transparent;
	color: #5e35b1;
	transition: transform 0.18s;
	font-size: 1em;
}
.btnxx:hover { transform: translateY(-3px); background: #ede7f6; }
.btn-primaryxx { background: linear-gradient(90deg,#5e35b1,#7c4dff); color: white; box-shadow: 0 8px 30px rgba(103,58,183,0.13); }
.btn-ghostxx { background: #f7f7fb; color: #5e35b1; }
@media (max-width:700px) {
	.agent-cardxx {
		padding: 12px;
	}

	.card-headxx { gap: 10px; }
	.agent-avatarxx { width: 54px; height: 54px; }
	.stats-rowxx { gap: 7px; }
	.row-actions-promoagentxx {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

@keyframes agentEmojiFloatxx {
	0% { transform: translateY(0); opacity: 0.72; }
	50% { transform: translateY(-7px); opacity: 1; }
	100% { transform: translateY(0); opacity: 0.75; }
}
@keyframes cardInxx {
	from { opacity: 0; transform: translateY(10px) scale(.995); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
