.energy-shop-gift-sent {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(34, 197, 94, 0.14);
	color: var(--tt);
	font-weight: 600;
	text-align: center;
}
.energy-shop-gifts-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}
.energy-shop-gifts-filter {
	border: 0;
	border-radius: 999px;
	padding: 8px 14px;
	background: var(--bg-2);
	color: var(--tt-2);
	cursor: pointer;
	font-weight: 700;
}
.energy-shop-gifts-filter.is-active { color: #fff; }
.energy-shop-gifts-filter--all.is-active { background: var(--bg1s, #c8102e); }
.energy-shop-gifts-filter--1.is-active { background: #22c55e; }
.energy-shop-gifts-filter--2.is-active { background: #3b82f6; }
.energy-shop-gifts-filter--3.is-active { background: #a855f7; }
.energy-shop-gifts-filter--4.is-active { background: #d97706; }
.energy-shop-gifts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.energy-shop-gift {
	display: flex;
	flex-direction: column;
	background: var(--bg-2);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
	min-width: 0;
}
.energy-shop-gift__art {
	height: 168px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}
.energy-shop-gift__art img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.energy-shop-gift__body {
	padding: 12px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.energy-shop-gift__rarity {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.energy-shop-gift--l1 .energy-shop-gift__rarity { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.energy-shop-gift--l2 .energy-shop-gift__rarity { background: rgba(59, 130, 246, 0.16); color: #1d4ed8; }
.energy-shop-gift--l3 .energy-shop-gift__rarity { background: rgba(168, 85, 247, 0.16); color: #7e22ce; }
.energy-shop-gift--l4 .energy-shop-gift__rarity { background: rgba(217, 119, 6, 0.18); color: #b45309; }
.energy-shop-gift__name {
	font-weight: 700;
	color: var(--tt);
	line-height: 1.25;
	min-height: 2.5em;
}
.energy-shop-gift__meta {
	color: var(--tt-2);
	font-size: 0.92rem;
}
.energy-shop-gift__price {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 7px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
}
.energy-shop-gift__price i { font-size: 0.95rem; }
.energy-shop-gift__price--l1 { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.energy-shop-gift__price--l1 .fa-bolt { color: #22c55e; }
.energy-shop-gift__price--l2 { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.energy-shop-gift__price--l2 .fa-ruble-sign { color: #3b82f6; }
.energy-shop-gift__price--l3 { background: rgba(168, 85, 247, 0.14); color: #7e22ce; }
.energy-shop-gift__price--l3 .fa-ruble-sign { color: #a855f7; }
.energy-shop-gift__price--l4 { background: rgba(217, 119, 6, 0.16); color: #b45309; }
.energy-shop-gift__price--l4 .fa-ruble-sign { color: #d97706; }
.energy-shop-gift__btn {
	margin-top: auto;
	min-height: 42px;
	border: 0;
	border-radius: 12px;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.energy-shop-gift__btn--l1 { background: #22c55e; }
.energy-shop-gift__btn--l1:hover { background: #16a34a; }
.energy-shop-gift__btn--l2 { background: #3b82f6; }
.energy-shop-gift__btn--l2:hover { background: #2563eb; }
.energy-shop-gift__btn--l3 { background: #a855f7; }
.energy-shop-gift__btn--l3:hover { background: #9333ea; }
.energy-shop-gift__btn--l4 { background: #d97706; }
.energy-shop-gift__btn--l4:hover { background: #b45309; }
.energy-shop-gift__btn:disabled {
	opacity: 0.45;
	cursor: default;
}
body.dt-is-active .energy-shop-gift--l1 .energy-shop-gift__rarity,
body.dt-is-active .energy-shop-gift__price--l1 { background: rgba(34, 197, 94, 0.18); color: #86efac; }
body.dt-is-active .energy-shop-gift--l2 .energy-shop-gift__rarity,
body.dt-is-active .energy-shop-gift__price--l2 { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
body.dt-is-active .energy-shop-gift__price--l2 .fa-ruble-sign { color: #93c5fd; }
body.dt-is-active .energy-shop-gift--l3 .energy-shop-gift__rarity,
body.dt-is-active .energy-shop-gift__price--l3 { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
body.dt-is-active .energy-shop-gift__price--l3 .fa-ruble-sign { color: #d8b4fe; }
body.dt-is-active .energy-shop-gift--l4 .energy-shop-gift__rarity,
body.dt-is-active .energy-shop-gift__price--l4 { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
body.dt-is-active .energy-shop-gift__price--l4 .fa-ruble-sign { color: #fcd34d; }
.energy-shop-gift.is-sold .energy-shop-gift__art {
	filter: grayscale(0.7);
	opacity: 0.7;
}

.amd-gift-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(8, 10, 16, 0.62);
}
.amd-gift-modal.is-open { display: flex; }
.amd-gift-modal__box {
	position: relative;
	width: min(440px, 100%);
	background: var(--bg, #16181d);
	color: var(--tt, #fff);
	border-radius: 22px;
	padding: 22px 20px 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	text-align: center;
}
.amd-gift-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tt-2, #aaa);
	cursor: pointer;
	font-size: 18px;
}
.amd-gift-modal__art {
	width: 220px;
	height: 220px;
	margin: 0 auto 12px;
	background: #fff;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}
.amd-gift-modal__art img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.amd-gift-modal__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	line-height: 1.25;
}
.amd-gift-modal__price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: 0 0 12px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 1.2rem;
	font-weight: 800;
}
.amd-gift-modal__rarity {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.amd-gift-modal__corner {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
}
.amd-gift-modal__corner[hidden] { display: none; }
.amd-gift-modal__corner.is-l1,
.amd-gift-modal__rarity.is-l1,
.amd-gift-modal__price.is-l1 { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.amd-gift-modal__price.is-l1 .fa-bolt { color: #22c55e; }
.amd-gift-modal__corner.is-l2,
.amd-gift-modal__rarity.is-l2,
.amd-gift-modal__price.is-l2 { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.amd-gift-modal__price.is-l2 .fa-ruble-sign { color: #3b82f6; }
.amd-gift-modal__corner.is-l3,
.amd-gift-modal__rarity.is-l3,
.amd-gift-modal__price.is-l3 { background: rgba(168, 85, 247, 0.14); color: #7e22ce; }
.amd-gift-modal__price.is-l3 .fa-ruble-sign { color: #a855f7; }
.amd-gift-modal__corner.is-l4,
.amd-gift-modal__rarity.is-l4,
.amd-gift-modal__price.is-l4 { background: rgba(217, 119, 6, 0.16); color: #b45309; }
.amd-gift-modal__price.is-l4 .fa-ruble-sign { color: #d97706; }
.amd-gift-modal__left {
	font-size: 0.82rem;
	font-weight: 700;
	opacity: 0.75;
}
.amd-gift-modal__pay.is-l1 { background: #22c55e; }
.amd-gift-modal__pay.is-l2 { background: #3b82f6; }
.amd-gift-modal__pay.is-l3 { background: #a855f7; }
.amd-gift-modal__pay.is-l4 { background: #d97706; }
body.dt-is-active .amd-gift-modal__corner.is-l1,
body.dt-is-active .amd-gift-modal__rarity.is-l1,
body.dt-is-active .amd-gift-modal__price.is-l1 { color: #86efac; }
body.dt-is-active .amd-gift-modal__corner.is-l2,
body.dt-is-active .amd-gift-modal__rarity.is-l2,
body.dt-is-active .amd-gift-modal__price.is-l2 { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
body.dt-is-active .amd-gift-modal__price.is-l2 .fa-ruble-sign { color: #93c5fd; }
body.dt-is-active .amd-gift-modal__corner.is-l3,
body.dt-is-active .amd-gift-modal__rarity.is-l3,
body.dt-is-active .amd-gift-modal__price.is-l3 { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
body.dt-is-active .amd-gift-modal__price.is-l3 .fa-ruble-sign { color: #d8b4fe; }
body.dt-is-active .amd-gift-modal__corner.is-l4,
body.dt-is-active .amd-gift-modal__rarity.is-l4,
body.dt-is-active .amd-gift-modal__price.is-l4 { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
body.dt-is-active .amd-gift-modal__price.is-l4 .fa-ruble-sign { color: #fcd34d; }
.amd-gift-modal__from a { color: inherit; font-weight: 700; }
.amd-gift-modal__field {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	margin: 8px 0;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--bdc, rgba(255,255,255,0.12));
	background: var(--bg-2, #222);
	color: var(--tt, #fff);
	font-size: 1rem;
}
.amd-gift-modal__anon {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 12px;
	color: var(--tt);
	cursor: pointer;
}
.amd-gift-modal__err {
	min-height: 1.2em;
	margin: 0 0 8px;
	color: #e11d48;
	font-weight: 600;
}
.amd-gift-modal__pay {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 14px;
	background: var(--bg1s, #c8102e);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.amd-gift-modal__pay:disabled { opacity: 0.6; cursor: default; }

.amd-gift-recv {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(22, 16, 18, 0.55);
	backdrop-filter: blur(3px);
}
.amd-gift-recv.is-open { display: flex; }
.amd-gift-recv__box {
	position: relative;
	width: min(420px, 100%);
	background:
		radial-gradient(90% 55% at 50% 0%, rgba(245, 193, 108, 0.55), transparent 62%),
		linear-gradient(180deg, #fff8ee 0%, #ffffff 46%);
	color: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 28px;
	padding: 26px 22px 22px;
	text-align: center;
	box-shadow: 0 28px 70px rgba(40, 16, 20, 0.28);
	animation: amdGiftPop 0.45s ease;
}
@keyframes amdGiftPop {
	from { transform: translateY(10px) scale(0.94); opacity: 0; }
	to { transform: none; opacity: 1; }
}
.amd-gift-recv__kicker {
	margin: 0 0 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.74rem;
	color: #c4922a;
	font-weight: 800;
}
.amd-gift-recv__art {
	width: 228px;
	height: 228px;
	margin: 0 auto 16px;
	background: #fff;
	border-radius: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-shadow: 0 14px 34px rgba(197, 7, 37, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.amd-gift-recv__art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.amd-gift-recv__name {
	margin: 0 0 12px;
	font-size: 1.65rem;
	line-height: 1.2;
	color: #161616;
	font-weight: 800;
}
.amd-gift-recv__from { margin: 0 0 18px; }
.amd-gift-recv__who {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 6px 14px 6px 6px;
	border-radius: 999px;
	background: #fff;
	color: #5c6168;
	text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(22, 22, 22, 0.08);
}
a.amd-gift-recv__who:hover { text-decoration: none !important; }
.amd-gift-recv__who-label { font-size: 0.92rem; }
.amd-gift-recv__who-name {
	font-weight: 800;
	font-size: 1.02rem;
	color: #c50725;
	line-height: 1.2;
}
.amd-gift-recv__who-date {
	font-size: 0.85rem;
	color: #8b919a;
}
.amd-gift-recv__ava {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px #fff;
}
.amd-gift-recv__close {
	min-width: 168px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 14px;
	background: #1a1a1a;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.amd-gift-recv__close:hover { background: #c50725; }

body.dt-is-active .amd-gift-recv {
	background: rgba(6, 12, 18, 0.72);
}
body.dt-is-active .amd-gift-recv__box {
	background:
		radial-gradient(90% 55% at 50% 0%, rgba(41, 183, 216, 0.32), transparent 60%),
		linear-gradient(180deg, #2a465c 0%, #1b2935 52%, #142330 100%);
	color: #e8eef3;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
body.dt-is-active .amd-gift-recv__kicker { color: #7fd4ea; }
body.dt-is-active .amd-gift-recv__name { color: #fff; }
body.dt-is-active .amd-gift-recv__art {
	background: #f7f4ef;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
body.dt-is-active .amd-gift-recv__who {
	background: rgba(10, 22, 32, 0.55);
	color: #c5d0da;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
body.dt-is-active .amd-gift-recv__who-name { color: #7fd4ea; }
body.dt-is-active .amd-gift-recv__who-date { color: #9aabba; }
body.dt-is-active .amd-gift-recv__ava { box-shadow: 0 0 0 2px #1b2935; }
body.dt-is-active .amd-gift-recv__close { background: #00a0b0; color: #fff; }
body.dt-is-active .amd-gift-recv__close:hover { background: #028894; }

.amd-gift-modal__from .amd-gift-recv__who { margin-top: 4px; }
body.dt-is-active .amd-gift-modal__box {
	background: #1b2935;
	color: #e4e4e4;
	border: 1px solid rgba(255, 255, 255, 0.06);
}
body.dt-is-active .amd-gift-modal__title { color: #fff; }
body.dt-is-active .amd-gift-modal__field {
	background: #11212e;
	color: #e4e4e4;
	border-color: #11212e;
}

.profile-gifts { margin: 0 0 18px; }
.profile-gifts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-gifts__item {
	width: 74px;
	height: 74px;
	padding: 6px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.profile-gifts__item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.profile-gifts__empty { color: var(--tt-2); padding: 4px 0 8px; }
.profile-gifts-page { padding: 8px 0 28px; }
.profile-gifts-page__head { margin-bottom: 16px; }
.profile-gifts-page__back { color: var(--tt-2); text-decoration: none; }
.profile-gifts-page__title { margin: 8px 0 0; color: var(--tt); font-size: 1.8rem; }
.profile-gifts-page__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.profile-gifts-page__card {
	border: 0;
	border-radius: 16px;
	background: var(--bg-2);
	color: var(--tt);
	padding: 10px 10px 12px;
	cursor: pointer;
	text-align: center;
}
.profile-gifts-page__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	background: #fff;
	border-radius: 14px;
	margin-bottom: 8px;
	padding: 8px;
}
.profile-gifts-page__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.profile-gifts-page__name { display: block; font-weight: 800; line-height: 1.25; }
.profile-gifts-page__from { display: block; margin-top: 4px; color: var(--tt-2); font-size: 0.9rem; }
