/* Магазин услуг — MEAT74-style */

.b16-layout__main .b16-store-page {
	width: 100%;
	max-width: none;
	padding: 8px 12px 28px;
	box-sizing: border-box;
	background: rgba(8, 8, 12, 0.94);
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(8px);
	position: relative;
	z-index: 2;
}

.b16-store-page {
	width: 100%;
	padding: 0 4px 24px;
}

.b16-store,
.b16-store__panel,
.b16-store__overlay {
	--b16-store-accent: #e11d2e;
	--b16-store-buy: #e11d2e;
	--b16-store-price: #7c5cff;
	--b16-store-card: #141418;
	--b16-store-panel: #101014;
	--b16-store-line: rgba(255, 255, 255, 0.07);
}

.b16-store {
	position: relative;
}

.b16-store__layout {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.b16-store__servers {
	background: var(--b16-store-panel);
	border: 1px solid var(--b16-store-line);
	border-radius: 18px;
	padding: 14px;
	position: sticky;
	top: 88px;
}

.b16-store__servers-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin: 0 0 10px;
}

.b16-store__server-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: calc(100vh - 180px);
	overflow: auto;
}

.b16-store__server-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.88);
	border-radius: 14px;
	padding: 11px 12px;
	text-align: left;
	font-size: 13px;
	line-height: 1.25;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.b16-store__server-btn i {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

.b16-store__server-btn:hover {
	background: rgba(255, 255, 255, 0.06);
}

.b16-store__server-btn.is-active {
	border-color: rgba(124, 107, 255, 0.45);
	background: rgba(124, 107, 255, 0.12);
}

.b16-store__server-btn.is-active i {
	color: #9d8fff;
}

.b16-store__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.b16-store__banner {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	min-height: 118px;
	padding: 22px 24px;
	background:
		linear-gradient(115deg, rgba(124, 107, 255, 0.22) 0%, rgba(124, 107, 255, 0) 42%),
		linear-gradient(180deg, #1a1528 0%, #101014 100%);
	border: 1px solid var(--b16-store-line);
}

.b16-store__banner::after {
	content: '';
	position: absolute;
	right: -20px;
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 107, 255, 0.35) 0%, transparent 70%);
	pointer-events: none;
}

.b16-store__banner-text {
	position: relative;
	z-index: 1;
	max-width: 70%;
	font-size: clamp(18px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.b16-store__banner-sub {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

.b16-store__discount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.25);
	color: #fbbf24;
	font-size: 13px;
}

.b16-store__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-radius: 16px;
	background: var(--b16-store-panel);
	border: 1px solid var(--b16-store-line);
}

.b16-store__toolbar-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	min-width: 0;
}

.b16-store__toolbar-title i {
	color: var(--b16-store-accent);
	font-size: 18px;
	flex-shrink: 0;
}

.b16-store__toolbar-title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b16-store__sort {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.b16-store__sort-btn {
	border: 1px solid rgba(124, 107, 255, 0.35);
	background: rgba(124, 107, 255, 0.12);
	color: #c4baff;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.b16-store__sort-btn:hover,
.b16-store__sort-btn.is-active {
	background: var(--b16-store-accent);
	border-color: var(--b16-store-accent);
	color: #fff;
}

.b16-store__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.b16-store__card {
	background: linear-gradient(180deg, #17171c 0%, #111116 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.b16-store__card-head {
	padding: 12px 14px 8px;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.b16-store__card-media {
	position: relative;
	margin: 0 10px;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 9 / 16;
	background: #0e0e12;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.b16-store__card-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.b16-store__card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.35);
}

.b16-store__card-placeholder i {
	font-size: 42px;
	opacity: 0.55;
}

.b16-store__card-placeholder span {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.b16-store__card-price {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(245, 158, 11, 0.55);
	background: rgba(10, 10, 12, 0.82);
	color: var(--b16-store-price);
	font-size: 13px;
	font-weight: 700;
}

.b16-store__card-cart {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 12px;
	background: var(--b16-store-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.b16-store__card-cart:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.b16-store__card-tarif {
	margin: 10px 10px 0;
}

.b16-store__card-tarif select {
	width: 100%;
	border: 1px solid var(--b16-store-line);
	background: #0f0f13;
	color: rgba(255, 255, 255, 0.88);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 12px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.b16-store__perks {
	margin: 10px;
	padding: 10px 10px 12px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--b16-store-line);
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.b16-store__perks-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	flex-shrink: 0;
}

.b16-store__perks-more {
	border: none;
	background: rgba(80, 48, 28, 0.85);
	color: #f0b35a;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.b16-store__perks-more:hover {
	background: rgba(110, 64, 32, 0.95);
	color: #ffd08a;
}

.b16-store__perks-list {
	list-style: none;
	margin: 0;
	padding: 0 2px 2px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 132px;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

.b16-store__perks-list::-webkit-scrollbar {
	width: 5px;
}

.b16-store__perks-list::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 999px;
}

.b16-store__perks-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.28);
	border-radius: 999px;
}

.b16-store__perks-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 11px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.b16-store__perks-list i {
	font-size: 14px;
	margin-top: 1px;
	flex-shrink: 0;
}

.b16-store__perks-list i.bx-check-circle { color: #4ade80; }
.b16-store__perks-list i.bx-info-circle { color: #60a5fa; }
.b16-store__perks-list i.bx-star { color: #fbbf24; }
.b16-store__perks-list i.bx-shield { color: #c084fc; }
.b16-store__perks-list i.bx-bolt-circle { color: #fb923c; }
.b16-store__perks-list i.bx-medal { color: #f472b6; }

.b16-store__empty,
.b16-store__loader {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
}

.b16-store__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(440px, 100vw);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	z-index: 10050;
	background: #121216;
	border-left: 1px solid var(--b16-store-line);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.b16-store__panel.is-open {
	transform: translate3d(0, 0, 0);
	visibility: visible;
	pointer-events: auto;
}

.b16-store__overlay {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.62);
	z-index: 10040;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	margin: 0;
}

.b16-store__overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Панель вынесена в body — поверх всего layout */
body > .b16-store__overlay,
body > .b16-store__panel {
	position: fixed !important;
}

.b16-store__panel-sticky {
	flex: 0 0 auto;
	background: #121216;
	border-bottom: 1px solid var(--b16-store-line);
}

.b16-store__panel-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.b16-store__panel-head {
	flex-shrink: 0;
	padding: 18px 52px 10px 18px;
}

.b16-store__panel-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--b16-store-price);
}

.b16-store__panel-sub {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
}

.b16-store__panel-perks-pin {
	display: none !important;
}

.b16-store__panel-body {
	padding: 4px 18px 18px;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.b16-store__panel-body .b16-store__perk-card {
	margin: 0;
}

.b16-store__perk-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.b16-store__perk-card-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.b16-store__perk-card-icon--info {
	background: rgba(96, 165, 250, 0.16);
	color: #60a5fa;
}

.b16-store__perk-card-icon--warn {
	background: rgba(248, 113, 113, 0.16);
	color: #f87171;
}

.b16-store__perk-card-text {
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
	word-break: break-word;
}

.b16-store__perk-card-text a {
	color: #93a0ff;
	text-decoration: underline;
}

.b16-store__panel-perks-empty,
.b16-store__panel-extra-empty {
	margin: 0;
	padding: 8px 0 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
}

.b16-store__panel-extra-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
}

.b16-store__panel-extra-loading i {
	font-size: 18px;
}

.b16-store__panel-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
	font-size: 20px;
}

.b16-store__panel-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.b16-store__panel-perks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
}

.b16-store__panel-perks i {
	font-size: 18px;
	margin-top: 2px;
}

.b16-store__panel-html {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.b16-store__panel-html img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 10px 0;
	border-radius: 12px;
}

.b16-store__panel-html ul {
	padding-left: 18px;
}

.b16-store__checkout-wrap {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 18px 18px;
	display: flex;
	flex-direction: column;
}

.b16-store__checkout-wrap.is-hidden,
.b16-store__panel-scroll.is-hidden,
#b16StoreCheckoutWrap[hidden],
#b16StorePanelScroll[hidden] {
	display: none !important;
}

.b16-store__checkout {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.b16-store__checkout-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Глобальный label { position:absolute } из style_two.css — иначе надписи наезжают на заголовок */
.b16-store__panel .b16-store__checkout label,
.b16-store__checkout-field > label {
	position: static !important;
	display: block !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	width: auto !important;
	float: none !important;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 1.3;
	z-index: auto;
	pointer-events: none;
}

.b16-store__checkout select,
.b16-store__checkout input[type="text"] {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0f0f13;
	color: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 13px;
}

.b16-store__checkout-agree {
	display: none !important;
}

.b16-store__checkout-buy,
#store_buy_btn.b16-store__checkout-buy {
	display: block;
	width: 100%;
	border: none !important;
	border-radius: 14px;
	padding: 14px 16px;
	background: #e11d2e !important;
	background-color: #e11d2e !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 8px 22px rgba(225, 29, 46, 0.35);
}

.b16-store__checkout-buy:hover,
#store_buy_btn.b16-store__checkout-buy:hover {
	filter: brightness(1.08);
}

.b16-store__checkout-buy.disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
	box-shadow: none;
}

.b16-store__checkout-buy:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.b16-store__panel-foot {
	flex-shrink: 0;
	padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--b16-store-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #121216;
}

.b16-store__panel-foot-buy {
	display: block;
	width: 100%;
	border: none !important;
	border-radius: 14px;
	padding: 14px 16px;
	background: #e11d2e !important;
	background-color: #e11d2e !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 8px 22px rgba(225, 29, 46, 0.35);
}

.b16-store__panel-foot-buy:hover {
	filter: brightness(1.08);
}

.b16-store__panel-back {
	width: 100%;
	border: 1px solid var(--b16-store-line);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	border-radius: 14px;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.b16-store__panel-back:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

body.b16-store-panel-open {
	overflow: hidden;
}

.b16-store__checkout-name {
	display: none !important;
}

.b16-store__success:empty {
	display: none;
}

.b16-store__success .bs-callout {
	margin: 0 0 14px;
	border-radius: 14px;
}

.b16-store__legacy {
	display: none !important;
}

@media (max-width: 1399.98px) {
	.b16-store__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1099.98px) {
	.b16-store__layout {
		grid-template-columns: 1fr;
	}

	.b16-store__servers {
		position: static;
	}

	.b16-store__server-list {
		flex-direction: row;
		flex-wrap: wrap;
		max-height: none;
	}

	.b16-store__server-btn {
		width: auto;
		flex: 1 1 calc(50% - 8px);
		min-width: 140px;
	}

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

@media (max-width: 575.98px) {
	.b16-store__grid {
		grid-template-columns: 1fr;
	}

	.b16-store__banner-text {
		max-width: 100%;
	}
}
