/* =========================================================
   Forex Tools — ПРЕМИУМ-КОМПОНЕНТ (единый, все страницы).
   Активируется через body.ft-premium (вешается глобально).
   Один источник: карточки, кнопки, цифры, лейблы, разделители.
   ========================================================= */

.ft-premium {
	--prf-radius: 20px;
	--prf-radius-sm: 12px;
}

/* ---------- 1. Микрозаголовки-лейблы ---------- */
.ft-premium .section-title,
.ft-premium .ft-trust-title,
.ft-premium .cta-title {
	position: relative;
	display: inline-block;
}
.ft-premium .section-title::before,
.ft-premium .ft-trust-title::before,
.ft-premium .cta-title::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 14px;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #17808B;
	color: color-mix(in srgb, var(--color-p2) 75%, transparent);
}
/* Лейблы по секциям (задаются в HTML атрибутом data-label).
   Наследование: если data-label нет — лейбл скрыт. */
.ft-premium .section-title:not([data-label])::before,
.ft-premium .ft-trust-title:not([data-label])::before,
.ft-premium .cta-title:not([data-label])::before {
	content: none;
}

/* Центрирование H2 и лейбла во всех секциях главной.
   В .section-head (каталог/топ) — колонка: заголовок по центру,
   ссылка «Весь каталог →» ниже. */
.ft-premium .ft-trust-title,
.ft-premium .cta-title,
.ft-premium .section-title {
	display: block;
	text-align: center;
}
.ft-premium .section-title::before {
	margin-left: auto;
	margin-right: auto;
}
.ft-premium .section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}
.ft-premium .section-head .section-title {
	margin: 0;
}

/* ---------- 2. Цифры статистики: тонкие, с градиентом ---------- */
.ft-premium .stat-value {
	font-family: var(--font-heading);
	font-weight: 300;
	font-size: clamp(44px, 5.5vw, 72px);
	line-height: 1;
	letter-spacing: -.02em;
	background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, .55) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ft-premium .stat-label { letter-spacing: .08em; }

/* ---------- 3. Карточки: стекло + многослойные тени ---------- */
.ft-premium .feature-card,
.ft-premium .service-card,
.ft-premium .category-card,
.ft-premium .product-card,
.ft-premium .testimonial {
	position: relative;
	border: 1px solid rgba(10, 31, 65, .06);
	background: #ffffff;
	background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(246, 246, 246, .94) 100%);
	box-shadow:
		0 1px 2px rgba(10, 31, 65, .05),
		0 8px 24px rgba(10, 31, 65, .06),
		0 24px 64px rgba(10, 31, 65, .07);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .4s ease;
}
.ft-premium .feature-card::before,
.ft-premium .service-card::before,
.ft-premium .product-card::before {
	content: "";
	position: absolute;
	top: 0; left: 12%; right: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
	pointer-events: none;
}
.ft-premium .feature-card:hover,
.ft-premium .service-card:hover,
.ft-premium .product-card:hover {
	transform: translateY(-6px);
	border-color: rgba(71, 186, 198, .35);
	box-shadow:
		0 2px 4px rgba(10, 31, 65, .05),
		0 12px 32px rgba(10, 31, 65, .09),
		0 32px 80px rgba(10, 31, 65, .10);
}

/* ---------- 4. Иконки: градиентная плашка ---------- */
.ft-premium .feature-icon {
	width: 56px; height: 56px;
	border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(71, 186, 198, .12), rgba(23, 128, 139, .08));
	border: 1px solid rgba(71, 186, 198, .18);
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .35s ease;
}
.ft-premium .feature-card:hover .feature-icon {
	transform: scale(1.05) rotate(-2deg);
	background: linear-gradient(135deg, rgba(71, 186, 198, .2), rgba(23, 128, 139, .14));
}

/* ---------- 5. Trust-блок: ТЁМНЫЕ стеклянные плашки, белый текст ---------- */
.ft-premium .ft-trust-grid {
	gap: clamp(16px, 2vw, 32px);
}
.ft-premium .ft-trust-item {
	position: relative;
	padding: clamp(24px, 2.5vw, 36px) clamp(18px, 2vw, 28px);
	border-radius: var(--prf-radius);
	background: linear-gradient(180deg, rgba(22, 46, 92, .82), rgba(10, 31, 65, .9));
	border: 1px solid rgba(71, 186, 198, .22);
	box-shadow:
		0 1px 2px rgba(0, 0, 0, .2),
		0 12px 32px rgba(0, 0, 0, .25);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .4s ease;
}
.ft-premium .ft-trust-item::before {
	content: "";
	position: absolute;
	top: 0; left: 15%; right: 15%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
	pointer-events: none;
}
.ft-premium .ft-trust-item:hover {
	transform: translateY(-4px);
	border-color: rgba(71, 186, 198, .45);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, .22),
		0 18px 48px rgba(0, 0, 0, .3);
}
.ft-premium .ft-trust-item h3 { color: #ffffff; }
.ft-premium .ft-trust-item p  { color: rgba(255, 255, 255, .78); }
.ft-premium .ft-trust-icon {
	background: rgba(71, 186, 198, .22);
	color: #7ee4ee;
	border: 1px solid rgba(71, 186, 198, .35);
}

/* ---------- 6. Кнопки: полировка ---------- */
.ft-premium .btn {
	position: relative;
	overflow: hidden;
	border-radius: var(--prf-radius-sm);
	box-shadow:
		0 1px 2px rgba(23, 128, 139, .18),
		0 8px 24px rgba(23, 128, 139, .22);
}
/* Примечание: outline/auto используют ::after для градиентной рамки,
   primary — ::before для тикера (см. «Креативные кнопки» ниже). */

/* ---------- 7. Шаги «Как купить» ---------- */
.ft-premium .how-icon {
	width: 72px; height: 72px;
	border-radius: 50%;
	font-size: 26px;
	background: linear-gradient(135deg, #47BAC6, #17808B);
	box-shadow:
		0 0 0 6px rgba(71, 186, 198, .14),
		0 12px 28px rgba(23, 128, 139, .3);
}

/* ---------- 8. Отзыв «Разработчик месяца» ---------- */
.ft-premium .testimonial {
	border-radius: 24px;
	padding: 48px clamp(28px, 4vw, 64px);
}
.ft-premium .testimonial-badge {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	border-radius: 24px;
	padding: 6px 16px;
	box-shadow: 0 6px 16px rgba(217, 119, 6, .25);
}

/* ---------- 9. Появление секций ---------- */
.ft-premium .ft-ref-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.ft-premium .ft-ref-reveal.ft-ref-in {
	opacity: 1;
	transform: none;
}

/* ---------- 10. Разделители: ШИРОКИЕ, тонкий градиент ---------- */
.ft-premium .ft-divider {
	height: 2px;
	max-width: 1200px;          /* было 600px */
	background: linear-gradient(90deg, transparent, rgba(71, 186, 198, .4), rgba(23, 128, 139, .6), rgba(71, 186, 198, .4), transparent);
	opacity: .55;
}

/* ---------- 11. Кабинеты: формы и таблицы в премиальном стекле ---------- */
.ft-premium .form-card,
.ft-premium .ft-form,
.ft-premium .account-greeting,
.ft-premium .data-box,
.ft-premium .support-panel {
	position: relative;
	border: 1px solid rgba(10, 31, 65, .06);
	background: #ffffff;
	background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(246, 246, 246, .94) 100%);
	box-shadow:
		0 1px 2px rgba(10, 31, 65, .05),
		0 8px 24px rgba(10, 31, 65, .06);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
.ft-premium .form-card { border-radius: var(--prf-radius); }

/* Таблицы заказов/кабинета */
.ft-premium .cart-table,
.ft-premium .orders-table {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--prf-radius-sm);
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(10, 31, 65, .04),
		0 8px 24px rgba(10, 31, 65, .05);
}
.ft-premium .cart-table th,
.ft-premium .orders-table th {
	background: linear-gradient(180deg, rgba(71, 186, 198, .08), rgba(23, 128, 139, .04));
	letter-spacing: .05em;
}
.ft-premium .cart-table tr:hover td,
.ft-premium .orders-table tr:hover td {
	background: rgba(71, 186, 198, .05);
}

/* Боксы статистики кабинета */
.ft-premium .stat-box,
.ft-premium .vendor-balance-stat {
	position: relative;
	border-radius: var(--prf-radius);
	border: 1px solid rgba(71, 186, 198, .18);
	background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(246, 246, 246, .92));
	box-shadow:
		0 1px 2px rgba(10, 31, 65, .04),
		0 8px 24px rgba(10, 31, 65, .06);
}

/* ---------- 11b. Карточка товара (single-software) ---------- */
.ft-premium .software-gallery,
.ft-premium .software-description,
.ft-premium .topic-article,
.ft-premium .topic-reply-form,
.ft-premium .reply-item,
.ft-premium .checkout-box {
	position: relative;
	border-radius: var(--prf-radius);
	border: 1px solid rgba(10, 31, 65, .06);
	background: #ffffff;
	background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(246, 246, 246, .94) 100%);
	box-shadow:
		0 1px 2px rgba(10, 31, 65, .04),
		0 8px 24px rgba(10, 31, 65, .06),
		0 24px 64px rgba(10, 31, 65, .07);
}
.ft-premium .ft-breadcrumbs {
	background: transparent;
	border-bottom: 1px solid rgba(10, 31, 65, .06);
}

/* ---------- 12. Мобильная аккуратность ---------- */
@media (max-width: 600px) {
	.ft-premium .stat-value { font-size: 40px; }
	.ft-premium .feature-icon { width: 48px; height: 48px; }
	.ft-premium .testimonial { padding: 32px 20px; }
	.ft-premium .ft-divider { max-width: 100%; }
}

/* =========================================================
   КРЕАТИВНЫЕ ХЛЕБНЫЕ КРОШКИ — «Неоновый трейл» (body.ft-premium).
   Свечные разделители, стеклянные чипы, пульсирующая точка
   текущего пункта. Работают и на светлых, и на тёмных блоках.
   ========================================================= */
.ft-premium .ft-breadcrumbs {
	display: flex;
	background: transparent;
	padding: 18px clamp(0px, 0vw, 0px);
}

.ft-premium .ft-breadcrumbs .container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 6px;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Пункт-чип */
.ft-premium .ft-crumb {
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
}
.ft-premium .ft-crumb a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(71, 186, 198, .16);
	background: rgba(255, 255, 255, .55);
	color: #17808B;
	transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.ft-premium .ft-crumb a:hover,
.ft-premium .ft-crumb a:focus-visible {
	border-color: rgba(71, 186, 198, .5);
	background: rgba(71, 186, 198, .12);
	transform: translateY(-1px);
}

/* Текущий пункт: тёмная плашка + пульсирующая точка */
.ft-premium .ft-crumb .current {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 16px 9px 13px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(47, 183, 196, .9), rgba(23, 128, 139, .92));
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(23, 128, 139, .3);
}
.ft-premium .ft-crumb[data-current] .current::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #eafff9;
	box-shadow: 0 0 0 0 rgba(234, 255, 249, .6);
	animation: ftCrumbPulse 2.2s ease-out infinite;
}
@keyframes ftCrumbPulse {
	0%   { box-shadow: 0 0 0 0 rgba(234, 255, 249, .55); }
	70%  { box-shadow: 0 0 0 7px rgba(234, 255, 249, 0); }
	100% { box-shadow: 0 0 0 0 rgba(234, 255, 249, 0); }
}

/* Свечной разделитель */
.ft-premium .ft-breadcrumbs .sep {
	display: inline-flex;
	align-items: center;
	color: rgba(23, 128, 139, .45);
	flex: 0 0 auto;
}
.ft-premium .ft-crumb-candle {
	display: block;
	filter: drop-shadow(0 2px 4px rgba(23, 128, 139, .25));
}

/* Тёмный контекст (hero с фиксированным тёмным фоном) — инвертируем */
.ft-premium.page-hero .ft-breadcrumbs,
.ft-premium .page-hero .ft-breadcrumbs {
	border-bottom: 0;
}
.ft-premium .page-hero .ft-crumb a,
.ft-premium.page-hero .ft-crumb a {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .18);
	color: rgba(255, 255, 255, .85);
}
.ft-premium .page-hero .ft-crumb a:hover,
.ft-premium.page-hero .ft-crumb a:hover {
	border-color: rgba(71, 186, 198, .6);
	background: rgba(71, 186, 198, .16);
	color: #ffffff;
}
.ft-premium .page-hero .ft-breadcrumbs .sep {
	color: rgba(255, 255, 255, .4);
}

@media (max-width: 600px) {
	.ft-premium .ft-breadcrumbs { padding: 14px 0; }
	.ft-premium .ft-crumb a,
	.ft-premium .ft-crumb .current { padding: 8px 12px; font-size: 12px; }
}

/* =========================================================
   КРЕАТИВНЫЕ КНОПКИ — body.ft-premium.
   1) Тикер-блик: бегущая диагональная полоса на primary.
   2) Обводка-градиент: анимированная рамка у outline/auto.
   ========================================================= */

/* --- 1. Тикер-блик --- */
.ft-premium .btn-primary,
.ft-premium .btn-add-cart,
.ft-premium .btn-lg,
.ft-premium .btn-sm,
.ft-premium .btn.btn-primary,
.ft-premium .btn.buy-now {
	position: relative;
	overflow: hidden;
}
/* Бегущая полоса поверх кнопки (не перекрывает текст) */
.ft-premium .btn::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
	transform: translateX(-120%);
	transition: none;
}
.ft-premium .btn:hover::before {
	animation: ftBtnTicker 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes ftBtnTicker {
	0%   { transform: translateX(-120%); }
	100% { transform: translateX(120%); }
}
/* Тик при нажатии */
.ft-premium .btn:active {
	transform: translateY(1px) scale(.985);
}

/* --- 2. Обводка-градиент для outline/auto --- */
.ft-premium .btn-outline,
.ft-premium .btn-auto {
	position: relative;
	border: 0;
	background: rgba(255, 255, 255, .45);
	background-clip: padding-box;
}
.ft-premium .btn-outline::after,
.ft-premium .btn-auto::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(120deg, rgba(71, 186, 198, .9), rgba(23, 128, 139, .7), rgba(71, 186, 198, .9));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	background-size: 200% 200%;
	opacity: .7;
	transition: opacity .3s ease, background-position .5s ease;
	pointer-events: none;
	z-index: 0;
}
.ft-premium .btn-outline:hover::after,
.ft-premium .btn-auto:hover::after {
	opacity: 1;
	animation: ftBtnRing 2.4s linear infinite;
}
@keyframes ftBtnRing {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}
/* Тёмный контекст outline: рамка остаётся видимой */
.ft-premium .hero .btn-outline::after,
.ft-premium .page-hero .btn-outline::after,
.ft-premium .site-header .btn-outline::after,
.ft-premium .site-footer .btn-outline::after,
.ft-premium .stats-section .btn-outline::after,
.ft-premium .ft-compare-bar .btn-outline::after {
	background: linear-gradient(120deg, rgba(71, 186, 198, .95), rgba(255, 255, 255, .45), rgba(71, 186, 198, .95));
}
/* =========================================================
   Âàðèàíòû ïîêóïêè (äåìî/ïîëíûé/èñõîäíèê) + áåéäæ «Âàø òîâàð».
   ========================================================= */

/* Áåéäæ «Âàø òîâàð» */
.ft-own-badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(34, 197, 94, .14);
	border: 1px solid rgba(34, 197, 94, .4);
	color: #16a34a;
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
}

/* Ïåðåêëþ÷àòåëü âàðèàíòîâ */
.ft-variants {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}
.ft-variant {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid rgba(10, 31, 65, .12);
	background: #fff;
	background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,246,246,.94));
	font-family: var(--font-heading);
	font-size: 14px;
	cursor: pointer;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ft-variant:hover {
	border-color: rgba(71, 186, 198, .5);
	transform: translateY(-1px);
}
.ft-variant input[type="radio"] {
	accent-color: #17808B;
	width: 16px;
	height: 16px;
}
.ft-variant:has(input:checked) {
	border-color: rgba(71, 186, 198, .6);
	box-shadow: 0 4px 14px rgba(71, 186, 198, .18);
}
.ft-variant-label { font-weight: 600; }
.ft-variant-price { color: #17808B; font-weight: 700; }

.ft-variant-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Ìåòêà âàðèàíòà â êîðçèíå */
.cart-variant {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(23,128,139,.1);
	border: 1px solid rgba(23,128,139,.25);
	color: #17808B;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

/* Ïîäïèñü ïîä ìåòêîé âàðèàíòà (íàïðèìåð, «3 ìåñÿöà, òîëüêî äåìî-ñ÷¸ò») */
.ft-variant-note {
	display: block;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 400;
	color: #6E747C;
	margin-top: 2px;
}
