/* ============================================================
   «Пробный · 299 ₽» + «Попробуй все» (owner 2026-11-23).
   Pill on the mode cards (trial.js, beep-app.js) and the mode chips of the «Пробный» card in the paywall
   (auth.js, tab «Пробные»). SONYA glass, palette --ed-* only (editor/editor.css): pearl #FEFDFD, #D0CDD2,
   #AFADBE, accent #877FC7 (focus ring / active chip rim only), #3A3A47, graphite #171923. No gold.
   Light theme sets colours with !important (styles.css forces `[data-theme="light"] * { color }`).
   ============================================================ */

.st-trial-pill {
	--st-ink: #EEEDF4;
	--st-fill: linear-gradient(155deg, rgba(200, 198, 228, 0.18) 0%, rgba(40, 40, 52, 0.36) 45%, rgba(8, 8, 12, 0.55) 100%);
	--st-rim: rgba(175, 173, 190, 0.34);
	--st-puff: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -8px 14px -10px rgba(5, 6, 12, 0.8);
	--st-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 14px -8px rgba(0, 0, 0, 0.8);
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	gap: 6px;
	margin-top: 10px;
	padding: 6px 12px;
	min-height: 28px;
	border-radius: 999px;
	border: 1px solid var(--st-rim);
	background: var(--st-fill);
	box-shadow: var(--st-puff), var(--st-shadow);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	color: var(--st-ink);
	font: 600 12px/1 var(--font-body, 'Onest', system-ui, sans-serif);
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.st-trial-pill:hover { transform: translateY(-1px); border-color: rgba(214, 212, 236, 0.55); }
.st-trial-pill:active { transform: translateY(0) scale(0.97); }
.st-trial-pill:focus-visible { outline: 2px solid rgba(135, 127, 199, 0.75); outline-offset: 2px; }
.st-trial-pill span { color: inherit; }

[data-theme="light"] .st-trial-pill {
	--st-ink: #2E2C3B;
	--st-fill: linear-gradient(155deg, rgba(254, 253, 253, 0.92) 0%, rgba(254, 253, 253, 0.6) 45%, rgba(208, 205, 210, 0.5) 100%);
	--st-rim: rgba(175, 173, 190, 0.55);
	--st-puff: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -8px 14px -10px rgba(110, 106, 130, 0.35);
	--st-shadow: 0 1px 2px rgba(110, 106, 130, 0.12), 0 6px 14px -8px rgba(110, 106, 130, 0.4);
	color: #2E2C3B !important;
}
[data-theme="light"] .st-trial-pill span { color: #2E2C3B !important; }
[data-theme="light"] .st-trial-pill:hover { border-color: rgba(135, 127, 199, 0.45); }

/* the mode card keeps its layout: the pill is one more line under the description */
.type-card .type-info { display: flex; flex-direction: column; }
.type-card .st-trial-pill { margin-top: 8px; }
@media (max-width: 420px) {
	.type-card .st-trial-pill { padding: 5px 10px; font-size: 11px; min-height: 26px; }
}
/* BEEP: sits in the pack row next to «Купить пакет» */
.st-trial-pill--beep { margin-top: 0; align-self: center; }

/* ── paywall: tab «Пробные» ─────────────────────────────────────────── */
#sonya-paywall-modal .plans-grid.is-try .plan-card.is-used { opacity: 0.55; cursor: default; }
#sonya-paywall-modal .plans-grid.is-try .plan-card.is-used:hover { transform: none; }

#sonya-paywall-modal .plan-trial-slots {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 2px 0 0;
	padding: 12px 14px;
	border-radius: 20px;
	border: 1px solid rgba(175, 173, 190, 0.22);
	background: linear-gradient(155deg, rgba(190, 188, 215, 0.1) 0%, rgba(30, 30, 40, 0.3) 45%, rgba(6, 6, 10, 0.5) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -14px 24px -18px rgba(5, 6, 12, 0.8);
	animation: st-slots-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes st-slots-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#sonya-paywall-modal .plan-trial-slots-title {
	width: 100%;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(175, 173, 190, 0.8);
}
#sonya-paywall-modal .plan-trial-chip {
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid rgba(175, 173, 190, 0.28);
	background: rgba(23, 25, 35, 0.42);
	color: #AFADBE;
	font: 500 13px/1 var(--font-body, 'Onest', system-ui, sans-serif);
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
#sonya-paywall-modal .plan-trial-chip:hover:not(:disabled) { color: #EEEDF4; border-color: rgba(214, 212, 236, 0.5); }
#sonya-paywall-modal .plan-trial-chip:active:not(:disabled) { transform: scale(0.96); }
#sonya-paywall-modal .plan-trial-chip:focus-visible { outline: 2px solid rgba(135, 127, 199, 0.75); outline-offset: 2px; }
#sonya-paywall-modal .plan-trial-chip.is-active {
	color: #171923;
	background: linear-gradient(155deg, #FEFDFD 0%, #D0CDD2 100%);
	border-color: rgba(135, 127, 199, 0.55);
	box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px -6px rgba(135, 127, 199, 0.55);
}
#sonya-paywall-modal .plan-trial-chip.is-used { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }

[data-theme="light"] #sonya-paywall-modal .plan-trial-slots {
	border-color: rgba(175, 173, 190, 0.45);
	background: linear-gradient(155deg, rgba(254, 253, 253, 0.8) 0%, rgba(254, 253, 253, 0.48) 45%, rgba(208, 205, 210, 0.42) 100%);
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -16px 26px -18px rgba(110, 106, 130, 0.28);
}
[data-theme="light"] #sonya-paywall-modal .plan-trial-slots-title { color: #9895A9 !important; }
[data-theme="light"] #sonya-paywall-modal .plan-trial-chip {
	background: rgba(254, 253, 253, 0.6);
	border-color: rgba(175, 173, 190, 0.5);
	color: #6D6A80 !important;
}
[data-theme="light"] #sonya-paywall-modal .plan-trial-chip:hover:not(:disabled) { color: #2E2C3B !important; border-color: rgba(135, 127, 199, 0.4); }
[data-theme="light"] #sonya-paywall-modal .plan-trial-chip.is-active {
	color: #FEFDFD !important;
	background: linear-gradient(155deg, #3A3A47 0%, #171923 100%);
	border-color: rgba(135, 127, 199, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px -6px rgba(23, 25, 35, 0.45);
}
@media (prefers-reduced-motion: reduce) {
	.st-trial-pill, #sonya-paywall-modal .plan-trial-chip { transition: none; }
	#sonya-paywall-modal .plan-trial-slots { animation: none; }
}
@media (min-width: 721px) {
	#sonya-paywall-modal .plans-grid.is-try:not(.is-solo) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
}
/* 6th tariff tab «Пробные»: the bar was sized for 5 (styles.css width min(420px)) */
#sonya-paywall-modal .sonya-auth-tabs.plans-modes { width: min(560px, 100%); grid-auto-columns: auto; }
#sonya-paywall-modal .plans-modes .sonya-auth-tab { min-width: 0; }
@media (max-width: 640px) {
	#sonya-paywall-modal .plans-modes .sonya-auth-tab { padding: 11px 3px !important; font-size: 11px !important; letter-spacing: 0 !important; }
}
