/* Продвижение сервера — /servera/shop/ (страница pages/page-monitoring-shop.php) */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

.shop-page {
	--sh-green: #12995a;
	--sh-green-dark: #0c7a47;
	--sh-green-soft: #e9f7ef;
	--sh-ink: #16211b;
	--sh-muted: #6b7a71;
	--sh-line: rgba(20, 45, 30, .09);
	--sh-surface: #fff;
	min-width: 0;
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	padding: 24px 0 8px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--sh-ink);
	font-size: 14px;
	line-height: 1.5;
}

.shop-page *,
.shop-page *::before,
.shop-page *::after { box-sizing: border-box; }

/* ── Hero + баланс ───────────────────────────────────────────── */

.shop-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 26px;
	padding: 26px 28px;
	border: 1px solid var(--sh-line);
	border-radius: 20px;
	background:
		radial-gradient(120% 150% at 100% 0, #ddf4e7 0, rgba(221, 244, 231, 0) 56%),
		linear-gradient(135deg, #fff 0%, #f7fbf8 100%);
	box-shadow: 0 18px 40px -30px rgba(12, 80, 45, .55);
	overflow: hidden;
}

.shop-hero__body { position: relative; z-index: 1; min-width: 0; }

.shop-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 99px;
	background: var(--sh-green-soft);
	color: var(--sh-green-dark);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.shop-eyebrow i { font-size: 10px; }

.shop-title {
	margin: 12px 0 8px;
	font-family: "Russo One", Roboto, sans-serif;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #12281c;
}

.shop-lead {
	max-width: 570px;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--sh-muted);
}

.shop-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 14px;
	font-size: 11.5px;
	color: #7d8b82;
}

.shop-meta b { color: var(--sh-green-dark); font-size: 13px; }

.shop-balance {
	position: relative;
	z-index: 1;
	flex: 0 0 236px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	padding: 20px 22px;
	border-radius: 16px;
	background: linear-gradient(150deg, #12995a, #0a6c40);
	color: #fff;
	box-shadow: 0 18px 32px -20px rgba(10, 108, 64, .85);
	overflow: hidden;
}

.shop-balance::after {
	content: "";
	position: absolute;
	right: -54px;
	bottom: -72px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}

.shop-balance__label {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

.shop-balance__value {
	display: flex;
	align-items: baseline;
	gap: 3px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.shop-balance__value i {
	margin-left: 2px;
	font-style: normal;
	font-size: 18px;
	font-weight: 600;
	opacity: .85;
}

.shop-balance__hint {
	font-size: 11px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .7);
}

/* ── Уведомления ─────────────────────────────────────────────── */

.shop-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 13px;
}

.shop-notice i { margin-top: 2px; }
.shop-notice--ok { border-color: #bfe8d1; background: #e9f7ef; color: #0d6a40; }
.shop-notice--err { border-color: #f3c9c9; background: #fdf0f0; color: #a12626; }

/* ── Выбор сервера ───────────────────────────────────────────── */

.shop-picker {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--sh-line);
	border-radius: 16px;
	background: var(--sh-surface);
	box-shadow: 0 14px 28px -26px rgba(12, 80, 45, .6);
}

.shop-picker__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.shop-picker__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sh-muted);
	white-space: nowrap;
}

.shop-picker__label i { color: var(--sh-green); }

.shop-select { position: relative; flex: 1 1 300px; min-width: 0; }

.shop-select select {
	width: 100%;
	max-width: 100%;
	padding: 11px 40px 11px 14px;
	border: 1px solid var(--sh-line);
	border-radius: 11px;
	background: #f8faf9;
	color: var(--sh-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.shop-select select:focus {
	outline: 2px solid rgba(18, 153, 90, .3);
	outline-offset: 1px;
	border-color: var(--sh-green);
}

.shop-select > i {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 12px;
	color: var(--sh-muted);
}

.shop-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 99px;
	background: #f1f5f2;
	color: #4e5f55;
	font-size: 11.5px;
	font-weight: 500;
}

.shop-chip i { font-size: 10px; color: #8a998f; }
.shop-chip__dot {
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #b59b46;
}
.shop-chip--status { background: #f6f4e9; color: #7a6a2f; }
.shop-chip--status i { color: #b59b46; }
.shop-chip--on { border-color: #c8ead7; background: var(--sh-green-soft); color: #0d6a40; }
.shop-chip--on i { color: var(--sh-green); }

/* ── Секции и заголовки ──────────────────────────────────────── */

.shop-form { display: flex; flex-direction: column; gap: 22px; }

.shop-group { display: flex; flex-direction: column; gap: 12px; }
.shop-group--banner { margin-top: 2px; }

.shop-group__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 0 2px;
}

.shop-group__head h2 {
	margin: 0 0 3px;
	font-family: "Russo One", Roboto, sans-serif;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: .25px;
	text-transform: uppercase;
	color: #17271e;
}

.shop-group__head p {
	max-width: 660px;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--sh-muted);
}

.shop-state {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	border: 1px solid var(--sh-line);
	border-radius: 99px;
	background: #fff;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--sh-muted);
	white-space: nowrap;
}

.shop-state.is-on { border-color: #c8ead7; background: var(--sh-green-soft); color: #0d6a40; font-weight: 600; }

.shop-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sh-green);
	box-shadow: 0 0 0 3px rgba(18, 153, 90, .15);
}

.shop-block { display: flex; flex-direction: column; gap: 9px; }

.shop-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 2px 2px 0;
}

.shop-block__head h3 {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #3c4d43;
}

.shop-block__head span { font-size: 11.5px; color: #93a097; }

/* ── Карточки тарифов ────────────────────────────────────────── */

.shop-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

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

.shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 16px;
	border: 1px solid var(--sh-line);
	border-radius: 16px;
	background: var(--sh-surface);
	box-shadow: 0 16px 30px -28px rgba(12, 80, 45, .65);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-card:hover {
	transform: translateY(-2px);
	border-color: rgba(18, 153, 90, .35);
	box-shadow: 0 18px 34px -24px rgba(12, 80, 45, .5);
}

.shop-card.is-locked { background: #fbfcfb; }
.shop-card.is-locked:hover { transform: none; border-color: var(--sh-line); box-shadow: 0 16px 30px -28px rgba(12, 80, 45, .65); }

.shop-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.shop-card__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--sh-green-soft);
	color: var(--sh-green);
	font-size: 15px;
}

.shop-card--amber .shop-card__icon { background: #fdf3e2; color: #b97718; }
.shop-card--violet .shop-card__icon { background: #eef0fc; color: #4a5bd0; }

.shop-card__badge {
	padding: 4px 8px;
	border-radius: 99px;
	background: #f2f5f3;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #5c6b62;
	white-space: nowrap;
}

.shop-card--amber .shop-card__badge { background: #fdf3e2; color: #9a6516; }
.shop-card--violet .shop-card__badge { background: #eef0fc; color: #4553b3; }

.shop-card__title {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -.01em;
	color: #17271e;
}

.shop-card__desc {
	min-height: 52px;
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--sh-muted);
}

.shop-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed rgba(20, 45, 30, .12);
}

.shop-card__price {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.02em;
	white-space: nowrap;
	color: #17271e;
}

.shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: none;
	min-height: 36px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--sh-green);
	color: #fff;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	box-shadow: 0 8px 16px -10px rgba(18, 153, 90, .85);
	transition: background .15s ease, transform .15s ease;
}

/* Перебиваем глобальные button{width:100%;height:44px} из main.css. */
.shop-page .shop-btn {
	width: auto;
	height: auto;
	max-height: none;
	white-space: normal;
}

.shop-btn:hover { background: var(--sh-green-dark); }
.shop-btn:active { transform: translateY(1px); }
.shop-btn:disabled,
.shop-btn.is-disabled {
	background: #eef1ef;
	color: #9aa79f;
	box-shadow: none;
	cursor: not-allowed;
}
.shop-btn:disabled:active { transform: none; }
.shop-card__foot .shop-btn:disabled { font-size: 11.5px; padding: 8px 10px; }

.shop-btn--ghost {
	border: 1px solid rgba(18, 153, 90, .35);
	background: #fff;
	color: var(--sh-green-dark);
	box-shadow: none;
	white-space: nowrap;
}
.shop-btn--ghost:hover { background: #f2fbf6; }

.shop-btn--sm { min-height: 34px; padding: 7px 12px; font-size: 12px; }

/* ── Баннер ──────────────────────────────────────────────────── */

.shop-banner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px;
	border: 1px solid var(--sh-line);
	border-radius: 16px;
	background: var(--sh-surface);
	box-shadow: 0 16px 30px -28px rgba(12, 80, 45, .65);
}

.shop-banner.is-active {
	border-color: rgba(18, 153, 90, .32);
	background: linear-gradient(90deg, #fff 0%, #f5fbf7 100%);
}

.shop-banner__preview {
	flex: 0 0 300px;
	display: grid;
	place-items: center;
	width: 300px;
	height: 64px;
	overflow: hidden;
	border: 1px dashed rgba(20, 45, 30, .18);
	border-radius: 10px;
	background: #f3f6f4;
	color: #93a097;
	font-size: 11.5px;
}

.shop-banner__preview span { display: inline-flex; align-items: center; gap: 7px; }
.shop-banner__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

.shop-banner__body { flex: 1; min-width: 0; }
.shop-banner__body h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; color: #17271e; }
.shop-banner__body p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sh-muted); }

.shop-banner__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 11px;
}

/* ── История покупок ─────────────────────────────────────────── */

.shop-history {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
	border: 1px solid var(--sh-line);
	border-radius: 16px;
	background: var(--sh-surface);
	box-shadow: 0 16px 30px -28px rgba(12, 80, 45, .65);
}

.shop-orders { display: flex; flex-direction: column; }

.shop-orders__head,
.shop-order {
	display: grid;
	grid-template-columns: 118px minmax(110px, 1.1fr) minmax(150px, 1.6fr) 105px;
	align-items: center;
	gap: 12px;
	padding: 9px 4px;
}

.shop-orders__head {
	padding-top: 4px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--sh-line);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #93a097;
}

.shop-orders__head span:last-child { text-align: right; }

.shop-order {
	border-bottom: 1px solid rgba(20, 45, 30, .06);
	font-size: 12.5px;
	transition: background .15s ease;
}

.shop-order:last-child { border-bottom: 0; }
.shop-order:hover { background: #fafcfa; }

.shop-order__date {
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	color: var(--sh-muted);
	white-space: nowrap;
}

.shop-order__server {
	overflow: hidden;
	font-weight: 600;
	color: #22352a;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shop-order__title { color: #4b5b52; overflow-wrap: anywhere; }

.shop-order__price {
	font-weight: 700;
	text-align: right;
	color: #b3402f;
	white-space: nowrap;
}

/* ── Пустое состояние ────────────────────────────────────────── */

.shop-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 36px 24px;
	border: 1px dashed rgba(20, 45, 30, .18);
	border-radius: 18px;
	background: linear-gradient(135deg, #fff 0%, #f7faf8 100%);
	text-align: center;
}

.shop-empty > i { font-size: 26px; color: var(--sh-green); }
.shop-empty h2 { margin: 6px 0 0; font-size: 18px; font-weight: 700; color: #17271e; }
.shop-empty p { max-width: 430px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--sh-muted); }
.shop-empty .shop-btn { margin-top: 10px; }

/* ── FAQ ─────────────────────────────────────────────────────── */

.shop-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
}

.shop-faq__title {
	margin: 0;
	font-family: "Russo One", Roboto, sans-serif;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: .25px;
	text-transform: uppercase;
	color: #17271e;
}

.shop-faq__list { display: flex; flex-direction: column; gap: 8px; }

.shop-faq__item {
	border: 1px solid var(--sh-line);
	border-radius: 13px;
	background: var(--sh-surface);
	overflow: hidden;
}

.shop-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: #24362b;
	cursor: pointer;
	list-style: none;
}

.shop-faq__item summary::-webkit-details-marker { display: none; }

.shop-faq__item summary i {
	flex: none;
	font-size: 11px;
	color: var(--sh-green);
	transition: transform .18s ease;
}

.shop-faq__item[open] summary i { transform: rotate(45deg); }
.shop-faq__item[open] { border-color: rgba(18, 153, 90, .3); }

.shop-faq__body {
	padding: 0 16px 14px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--sh-muted);
}

.shop-faq__body p { margin: 0; }

.shop-footnote {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0;
	font-size: 11.5px;
	color: #93a097;
}

.shop-footnote i { color: #aebbb3; }

/* ── Адаптив ─────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.shop-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shop-hero { flex-direction: column; gap: 18px; }
	.shop-balance { flex-basis: auto; width: 100%; }
	.shop-balance__value { font-size: 29px; }
}

@media (max-width: 760px) {
	.shop-page { gap: 13px; padding: 14px 14px 4px; }

	.shop-hero { padding: 20px 18px; border-radius: 16px; }
	.shop-title { margin: 10px 0 7px; font-size: 22px; }
	.shop-lead { font-size: 12.5px; }
	.shop-balance { padding: 16px 18px; border-radius: 14px; }

	.shop-picker { padding: 14px; }

	.shop-picker__form { flex-direction: column; align-items: stretch; gap: 8px; }
	.shop-picker__label { font-size: 10.5px; }
	.shop-select { flex-basis: auto; }

	.shop-cards,
	.shop-cards--2 { grid-template-columns: 1fr; }

	.shop-group__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.shop-group__head h2 { font-size: 16px; }
	.shop-state { white-space: normal; }

	.shop-card__desc { min-height: 0; }

	.shop-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
	.shop-banner__preview { flex-basis: auto; width: 100%; height: 64px; }

	.shop-history { padding: 14px; }

	.shop-orders__head { display: none; }

	.shop-order {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"date price"
			"server price"
			"title price";
		gap: 1px 12px;
		padding: 11px 2px;
	}

	.shop-order__date { grid-area: date; font-size: 10.5px; }
	.shop-order__server { grid-area: server; font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; }
	.shop-order__title { grid-area: title; font-size: 11.5px; color: var(--sh-muted); }
	.shop-order__price { grid-area: price; align-self: center; font-size: 13px; }

	.shop-faq__title { font-size: 16px; }
	.shop-faq__item summary { padding: 12px 14px; font-size: 12.5px; }
	.shop-faq__body { padding: 0 14px 12px; }

	.shop-footnote { align-items: flex-start; font-size: 11px; }
}

@media (max-width: 380px) {
	.shop-card__foot { flex-wrap: wrap; }
	.shop-card__foot .shop-btn { width: 100%; }
}
