/*! Forex Iran CTA — frontend. Isolated under .fic-cta; presets = token overrides; RTL-native; no !important. */

/* == Base + design tokens (defaults = Hero Gold) == */

.fic-cta {
	--fic-bg: #0d1b2e;
	--fic-bg-2: #152a45;
	--fic-text: #ffffff;
	--fic-muted: rgba(255, 255, 255, 0.72);
	--fic-accent: #f0b90b;
	--fic-badge-bg: rgba(240, 185, 11, 0.1);
	--fic-badge-text: #f5c84c;
	--fic-badge-border: rgba(240, 185, 11, 0.25);
	--fic-btn-bg: #f5c84c;
	--fic-btn-bg-2: #e8a90a;
	--fic-btn-text: #16202e;
	--fic-btn-shadow: 0 10px 28px rgba(240, 185, 11, 0.32);
	--fic-border: rgba(255, 255, 255, 0.08);
	--fic-glow: rgba(240, 185, 11, 0.14);
	--fic-radius: 20px;

	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block: 32px;
	border: 1px solid var(--fic-border);
	border-radius: var(--fic-radius);
	background: linear-gradient(135deg, var(--fic-bg), var(--fic-bg-2));
	color: var(--fic-text);
	font-family: inherit;
	text-align: center;
}

.fic-cta *,
.fic-cta *::before,
.fic-cta *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Ambient glow */
.fic-cta::before {
	content: "";
	position: absolute;
	inset-block-start: -45%;
	inset-inline-start: 55%;
	inline-size: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--fic-glow), transparent 65%);
	pointer-events: none;
}

.fic-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	inline-size: 100%;
	max-inline-size: 820px;
	padding: 56px 28px;
}

/* == Elements == */

.fic-cta .fic-cta__badge {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border: 1px solid var(--fic-badge-border);
	border-radius: 999px;
	background: var(--fic-badge-bg);
	color: var(--fic-badge-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.fic-cta .fic-cta__title {
	margin: 0;
	color: var(--fic-text);
	font-size: 44px;
	font-weight: 800;
	line-height: 1.3;
}

.fic-cta .fic-cta__subtitle {
	margin: 0;
	max-inline-size: 54ch;
	color: var(--fic-muted);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.75;
}

.fic-cta__action {
	display: flex;
	justify-content: center;
	inline-size: 100%;
	margin-block-start: 6px;
}

.fic-cta a.fic-cta__button {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: min(300px, 100%);
	min-block-size: 54px;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--fic-btn-bg), var(--fic-btn-bg-2));
	box-shadow: 0 2px 10px rgba(3, 10, 22, 0.14);
	color: var(--fic-btn-text);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fic-cta a.fic-cta__button:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: var(--fic-btn-shadow);
	color: var(--fic-btn-text);
	text-decoration: none;
}

.fic-cta a.fic-cta__button:focus-visible {
	outline: 3px solid var(--fic-accent);
	outline-offset: 3px;
}

/* Shimmer */
.fic-cta__button::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: -60%;
	inline-size: 40%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start 0.55s ease;
	pointer-events: none;
}

.fic-cta__button:hover::after {
	inset-inline-start: 130%;
}

/* Features line */
.fic-cta .fic-cta__features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fic-cta .fic-cta__feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--fic-muted);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
}

/* Kill theme li bullets */
.fic-cta .fic-cta__feature::marker {
	content: "";
}

.fic-cta .fic-cta__feature::before {
	content: none;
}

.fic-cta .fic-cta__feature + .fic-cta__feature::before {
	content: "";
	position: static;
	flex: none;
	inline-size: 4px;
	block-size: 4px;
	margin-inline: 16px;
	border-radius: 50%;
	background: var(--fic-accent);
	opacity: 0.65;
}

.fic-cta__feature .fic-icon {
	flex: none;
	color: var(--fic-accent);
}

/* Trust bar */
.fic-cta .fic-cta__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	color: var(--fic-muted);
	font-size: 12.5px;
	line-height: 1.5;
	opacity: 0.85;
}

.fic-cta__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.fic-cta__trust-item + .fic-cta__trust-item::before {
	content: "\2022";
	margin-inline: 12px;
	opacity: 0.5;
}

.fic-cta__trust .fic-icon {
	inline-size: 14px;
	block-size: 14px;
}

/* == Style: HERO == */

.fic-cta--hero {
	min-block-size: 440px;
}

.fic-cta--hero .fic-cta__inner {
	padding: 64px 32px;
}

/* == Style: CARD == */

.fic-cta--card {
	max-inline-size: 720px;
	margin-inline: auto;
}

.fic-cta--card .fic-cta__inner {
	gap: 14px;
	padding: 40px 32px;
}

.fic-cta--card .fic-cta__title {
	font-size: 28px;
}

.fic-cta--card .fic-cta__subtitle {
	font-size: 16px;
}

.fic-cta--card a.fic-cta__button {
	inline-size: min(280px, 100%);
	min-block-size: 52px;
	font-size: 16px;
}

.fic-cta--card .fic-cta__feature {
	font-size: 13.5px;
}

/* == Style: COMPACT == */

.fic-cta--compact {
	max-inline-size: 720px;
	min-block-size: 160px;
	margin-inline: auto;
	text-align: start;
}

.fic-cta--compact .fic-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 28px;
	max-inline-size: none;
	padding: 28px 32px;
}

.fic-cta--compact .fic-cta__title {
	font-size: 22px;
}

.fic-cta--compact .fic-cta__subtitle {
	font-size: 14.5px;
	line-height: 1.6;
}

.fic-cta--compact .fic-cta__action {
	grid-column: 2;
	grid-row: 1 / span 3;
	inline-size: auto;
	margin-block-start: 0;
}

.fic-cta--compact a.fic-cta__button {
	inline-size: 200px;
	min-block-size: 48px;
	font-size: 15px;
}

.fic-cta--compact .fic-cta__features {
	justify-content: flex-start;
	font-size: 13px;
	margin-block-start: 2px;
}

.fic-cta--compact .fic-cta__feature {
	font-size: 13px;
}

.fic-cta--compact .fic-cta__feature + .fic-cta__feature::before {
	margin-inline: 10px;
}

.fic-cta--compact .fic-cta__trust {
	display: none;
}

/* == Presets (custom-property overrides only) == */

.fic-preset--hero-dark,
.fic-preset--card-dark {
	--fic-bg: #0b0f19;
	--fic-bg-2: #121b2e;
	--fic-accent: #5b8def;
	--fic-badge-bg: rgba(91, 141, 239, 0.1);
	--fic-badge-text: #8fb2f5;
	--fic-badge-border: rgba(91, 141, 239, 0.28);
	--fic-btn-bg: #4d80ee;
	--fic-btn-bg-2: #3563cf;
	--fic-btn-text: #ffffff;
	--fic-btn-shadow: 0 10px 28px rgba(77, 128, 238, 0.38);
	--fic-glow: rgba(77, 128, 238, 0.16);
}

.fic-preset--hero-white,
.fic-preset--card-white,
.fic-preset--compact {
	--fic-bg: #ffffff;
	--fic-bg-2: #f2f5fb;
	--fic-text: #101828;
	--fic-muted: #5b6474;
	--fic-accent: #2f63d6;
	--fic-badge-bg: rgba(47, 99, 214, 0.07);
	--fic-badge-text: #2f63d6;
	--fic-badge-border: rgba(47, 99, 214, 0.2);
	--fic-btn-bg: #4d80ee;
	--fic-btn-bg-2: #3060cd;
	--fic-btn-text: #ffffff;
	--fic-btn-shadow: 0 10px 28px rgba(48, 96, 205, 0.3);
	--fic-border: rgba(16, 24, 40, 0.08);
	--fic-glow: rgba(77, 128, 238, 0.1);
}

.fic-preset--compact {
	--fic-bg: #f8fafd;
	--fic-bg-2: #eef2f9;
	--fic-glow: rgba(77, 128, 238, 0.08);
}

/* == Entrance animation (JS-gated, opacity/transform only — no CLS) == */

.fic-cta.fic-anim {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.fic-cta.fic-anim.fic-in {
	opacity: 1;
	transform: none;
}

/* == Sticky mobile bar (56px, mobile-only) == */

.fic-sticky {
	--fic-accent: #f0b90b;
	--fic-btn-bg: #f5c84c;
	--fic-btn-bg-2: #e8a90a;
	--fic-btn-text: #16202e;

	box-sizing: border-box;
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 9990;
	display: none;
	justify-content: center;
	padding: 8px 12px;
	padding-block-end: calc(8px + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(11, 17, 27, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: inherit;
}

.fic-sticky a.fic-sticky__button {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	max-inline-size: 420px;
	min-block-size: 40px;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--fic-btn-bg), var(--fic-btn-bg-2));
	color: var(--fic-btn-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.fic-sticky a.fic-sticky__button:active {
	transform: scale(0.98);
}

.fic-sticky a.fic-sticky__button:focus-visible {
	outline: 3px solid var(--fic-accent);
	outline-offset: 2px;
}

@media (max-width: 782px) {
	.fic-sticky {
		display: flex;
	}
}

@media print {
	.fic-sticky {
		display: none;
	}
}

/* == Responsive == */

@media (max-width: 782px) {
	.fic-cta .fic-cta__title {
		font-size: 30px;
	}

	.fic-cta .fic-cta__subtitle {
		font-size: 16px;
	}

	.fic-cta--hero {
		min-block-size: 0;
	}

	.fic-cta--hero .fic-cta__inner {
		gap: 16px;
		padding: 48px 20px;
	}

	.fic-cta--card .fic-cta__title {
		font-size: 24px;
	}

	.fic-cta--compact {
		text-align: center;
	}

	.fic-cta--compact .fic-cta__inner {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 8px;
		padding: 28px 20px;
	}

	.fic-cta--compact .fic-cta__action {
		grid-column: 1;
		grid-row: auto;
		inline-size: 100%;
		margin-block-start: 10px;
	}

	.fic-cta--compact a.fic-cta__button {
		inline-size: min(300px, 100%);
	}

	.fic-cta--compact .fic-cta__features {
		justify-content: center;
	}
}

/* == Reduced motion == */

@media (prefers-reduced-motion: reduce) {
	.fic-cta.fic-anim {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.fic-cta a.fic-cta__button {
		transition: none;
	}

	.fic-cta a.fic-cta__button:hover {
		transform: none;
	}

	.fic-cta__button::after {
		display: none;
	}
}
