/* Лимиты и Pro: счётчик в шапке инструмента и окно «Лимит исчерпан» */

.alm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	margin: 0 8px 0 0;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font: 600 12px/1 "Inter", "Segoe UI", system-ui, sans-serif;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s;
}

.alm-chip:hover {
	background: rgba(255, 255, 255, .26);
}

.alm-chip svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.alm-chip.is-low {
	background: rgba(245, 184, 73, .3);
	border-color: rgba(245, 184, 73, .6);
}

.alm-chip.is-empty {
	background: rgba(230, 83, 60, .38);
	border-color: rgba(255, 160, 145, .7);
}

.alm-chip.is-pro {
	cursor: default;
	color: #845adf;
	background: #fff;
	border-color: #fff;
}

/* Окно */
.alm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 18, 30, .55);
	backdrop-filter: blur(3px);
}

.alm-modal.is-open {
	display: flex;
	animation: alm-fade .18s ease;
}

@keyframes alm-fade {
	from { opacity: 0; }
}

.alm-card {
	--alm-card: var(--card, #fff);
	--alm-text: var(--text, #232a3b);
	--alm-muted: var(--muted, #737985);
	position: relative;
	width: min(440px, 100%);
	padding: 28px 26px 22px;
	border-radius: 14px;
	background: var(--alm-card);
	color: var(--alm-text);
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
	font-family: "Inter", "Segoe UI", system-ui, sans-serif;
	text-align: center;
	animation: alm-pop .2s ease;
}

@keyframes alm-pop {
	from { transform: translateY(8px) scale(.98); opacity: 0; }
}

.alm-x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--alm-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.alm-x:hover {
	background: rgba(132, 90, 223, .1);
	color: var(--alm-text);
}

.alm-ic {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, #5c67f7, #a15ae6);
	box-shadow: 0 10px 24px -10px rgba(132, 90, 223, .9);
}

.alm-ic svg {
	width: 26px;
	height: 26px;
}

.alm-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--alm-text);
}

.alm-card p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--alm-muted);
}

.alm-bar {
	height: 8px;
	margin: 0 0 16px;
	border-radius: 99px;
	background: rgba(132, 90, 223, .14);
	overflow: hidden;
}

.alm-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #5c67f7, #a15ae6);
}

.alm-perks {
	margin: 0 0 18px;
	padding: 12px 14px;
	list-style: none;
	text-align: left;
	border-radius: 10px;
	background: rgba(132, 90, 223, .08);
	font-size: 13.5px;
}

.alm-perks li {
	position: relative;
	padding: 4px 0 4px 24px;
}

.alm-perks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #845adf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.alm-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.alm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border-radius: 8px;
	border: 1px solid rgba(132, 90, 223, .3);
	background: transparent;
	color: var(--alm-text);
	font: 600 14px/1 "Inter", "Segoe UI", system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
}

.alm-btn:hover {
	border-color: #845adf;
	color: #845adf;
}

.alm-btn--primary {
	border-color: transparent;
	background: #845adf;
	color: #fff;
	box-shadow: 0 6px 18px -8px rgba(132, 90, 223, .9);
}

.alm-btn--primary:hover {
	background: #7448d4;
	color: #fff;
}

.alm-btn svg {
	width: 16px;
	height: 16px;
}

.alm-soon {
	margin: 12px 0 0 !important;
	font-size: 12.5px !important;
}
