.afb-avatar-wrap {
	position: relative;
	display: inline-block;
	line-height: 0;
	vertical-align: middle;
}

.afb-avatar-wrap > img:first-child,
.afb-avatar-wrap > a > img:first-child {
	display: block;
}

.bbs-profile-side-body > .afb-avatar-wrap {
	margin-top: -44px;
}

.afb-avatar-wrap > .bbs-profile-avatar {
	margin-top: 0;
}

.afb-avatar-frame {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	left: 50%;
	top: 50%;
	width: 154%;
	height: 154%;
	max-width: none;
	object-fit: contain;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	animation: afb-frame-shine 2.3s ease-in-out infinite, afb-avatar-frame-pulse 3.1s ease-in-out infinite;
}

.afb-shop {
	display: grid;
	gap: 1rem;
}

.afb-current {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	overflow: hidden;
	padding: 1.15rem;
	border: 1px solid #e8ecf3;
	border-radius: 8px;
	background:
		radial-gradient(circle at 12% 20%, rgba(53, 124, 255, .16), transparent 30%),
		radial-gradient(circle at 86% 14%, rgba(245, 114, 182, .15), transparent 28%),
		linear-gradient(135deg, #ffffff, #f7f9fc);
}

.afb-current-stage {
	position: relative;
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: conic-gradient(from 120deg, #7cb8ff, #ffe08a, #ff8fc3, #7cb8ff);
	box-shadow: 0 12px 30px rgba(30, 70, 130, .16);
	animation: afb-stage-breathe 3.8s ease-in-out infinite;
}

.afb-current-avatar {
	position: relative;
	width: 112px;
	height: 112px;
}

.afb-current-avatar img:first-child {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .84);
}

.afb-current-frame {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 112px;
	height: 112px;
	object-fit: contain;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	filter: drop-shadow(0 6px 12px rgba(21, 41, 80, .22));
	animation: afb-frame-shine 2.8s ease-in-out infinite;
}

.afb-current-copy {
	min-width: 0;
}

.afb-kicker {
	margin-bottom: .2rem;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #357cff;
}

.afb-current h5 {
	margin: 0 0 .25rem;
	font-size: 1.28rem;
	font-weight: 700;
}

.afb-current p {
	margin: 0 0 .75rem;
	color: #5d6575;
}

.afb-current b {
	color: #1e365e;
}

.afb-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
}

.afb-toolbar form {
	margin: 0;
}

.afb-filterbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .15rem 0 .25rem;
}

.afb-filter-tabs {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
}

.afb-filter-tabs a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	color: #52627a;
	font-size: .9rem;
	text-decoration: none;
}

.afb-filter-tabs a:hover,
.afb-filter-tabs a.active {
	color: #2f80ff;
	text-decoration: none;
}

.afb-filter-tabs a.active:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	border-radius: 999px;
	background: #2f80ff;
}

.afb-filter-tools {
	display: flex;
	align-items: center;
	gap: .65rem;
	flex: 0 0 auto;
	margin: 0;
}

.afb-search {
	position: relative;
	width: 220px;
}

.afb-search input,
.afb-order {
	width: 100%;
	height: 42px;
	border: 1px solid #dce6f2;
	border-radius: 10px;
	background: #fff;
	color: #31425c;
	outline: none;
}

.afb-search input {
	padding: 0 .85rem 0 2.3rem;
}

.afb-search input:focus,
.afb-order:focus {
	border-color: #9fc3ff;
	box-shadow: 0 0 0 3px rgba(47, 128, 255, .12);
}

.afb-search-icon {
	position: absolute;
	left: .85rem;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid #9aa9bc;
	border-radius: 50%;
	transform: translateY(-58%);
	pointer-events: none;
}

.afb-search-icon:after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: -5px;
	width: 7px;
	height: 2px;
	border-radius: 999px;
	background: #9aa9bc;
	transform: rotate(45deg);
}

.afb-order {
	width: 140px;
	padding: 0 .8rem;
	font-weight: 700;
}

.afb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: .9rem;
}

.afb-card {
	position: relative;
	overflow: hidden;
	border: 1px solid #e6eaf0;
	border-radius: 8px;
	background: #fff;
	padding: .9rem;
	text-align: center;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.afb-card:hover {
	transform: translateY(-3px);
	border-color: #b8cffd;
	box-shadow: 0 12px 28px rgba(36, 70, 128, .12);
}

.afb-card.is-wearing {
	border-color: #2f80ff;
	box-shadow: 0 0 0 2px rgba(47, 128, 255, .13), 0 14px 32px rgba(47, 128, 255, .12);
}

.afb-card.is-disabled {
	opacity: .58;
}

.afb-card:hover .afb-preview-frame {
	animation-duration: 1.6s;
}

.afb-preview-shell {
	position: relative;
	width: 108px;
	height: 108px;
	margin: 0 auto .75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #eef5ff, #fff4f8);
}

.afb-preview {
	position: relative;
	z-index: 1;
	width: 108px;
	height: 108px;
}

.afb-preview-avatar {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 68px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 5px 14px rgba(28, 44, 80, .16);
}

.afb-preview-frame {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 108px;
	height: 108px;
	object-fit: contain;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	filter: drop-shadow(0 5px 10px rgba(25, 45, 90, .2));
	animation: afb-frame-shine 2.3s ease-in-out infinite, afb-frame-pulse 3.1s ease-in-out infinite;
}

.afb-card-body {
	display: grid;
	gap: .18rem;
	min-height: 50px;
}

.afb-card-body strong {
	font-size: .96rem;
	font-weight: 700;
	color: #23324d;
	word-break: break-word;
}

.afb-card-body span {
	color: #738095;
	font-size: .84rem;
}

.afb-card-actions {
	min-height: 31px;
	margin-top: .65rem;
}

.afb-card-actions form {
	margin: 0;
}

.afb-ribbon,
.afb-motion-badge {
	position: absolute;
	top: .55rem;
	z-index: 2;
	height: 22px;
	padding: 0 .48rem;
	border-radius: 999px;
	font-size: .72rem;
	line-height: 22px;
	font-weight: 700;
}

.afb-ribbon {
	left: .55rem;
	color: #fff;
	background: #2f80ff;
}

.afb-motion-badge {
	right: .55rem;
	color: #7a3f00;
	background: #ffe2a7;
}

@keyframes afb-stage-breathe {
	0%, 100% { transform: scale(1); filter: saturate(1); }
	50% { transform: scale(1.025); filter: saturate(1.15); }
}

@keyframes afb-float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-3px) scale(1.015); }
}

@keyframes afb-frame-shine {
	0%, 100% {
		opacity: .96;
		filter: drop-shadow(0 5px 10px rgba(25, 45, 90, .16)) brightness(1);
	}
	45% {
		opacity: 1;
		filter: drop-shadow(0 6px 14px rgba(255, 88, 146, .32)) brightness(1.1);
	}
	70% {
		filter: drop-shadow(0 5px 12px rgba(61, 136, 255, .26)) brightness(1.04);
	}
}

@keyframes afb-frame-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.025); }
}

@keyframes afb-avatar-frame-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.025); }
}

@media (max-width: 575.98px) {
	.afb-current {
		align-items: flex-start;
	}

	.afb-current-stage {
		flex-basis: 92px;
		width: 92px;
		height: 92px;
	}

	.afb-current-avatar {
		width: 92px;
		height: 92px;
	}

	.afb-current-avatar img:first-child {
		width: 58px;
		height: 58px;
	}

	.afb-current-frame {
		width: 92px;
		height: 92px;
	}

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

	.afb-filterbar {
		align-items: stretch;
		flex-direction: column;
	}

	.afb-filter-tools {
		width: 100%;
	}

	.afb-search {
		flex: 1 1 auto;
		width: auto;
	}

	.afb-order {
		width: 120px;
	}
}
