/* =========================================================
   Online Exchange — Editorial institutional aesthetic
   Laravel 12 + Bootstrap 5 + jQuery
   ========================================================= */

:root {
	--fx-primary: #160B36;            /* ink */
	--fx-primary-ink: #160B36;
	--fx-primary-2: #2A0F67;          /* ink-2 / violet-900 */
	--fx-violet-700: #3E1AA8;
	--fx-violet-600: #5B2EE6;
	--fx-violet-500: #7C4DFF;
	--fx-violet-300: #B9A4FF;
	--fx-violet-200: #D9CCFF;
	--fx-violet-100: #ECE4FF;
	--fx-accent: #7C4DFF;             /* primary accent now violet */
	--fx-accent-soft: rgba(124, 77, 255, 0.14);
	--fx-gold: #FFC24B;               /* retained highlight from contact */
	--fx-surface: #F6F4FF;
	--fx-surface-2: #EFEAFF;
	--fx-paper: #FFFFFF;
	--fx-ink: #160B36;
	--fx-ink-60: rgba(22, 11, 54, 0.72);
	--fx-muted: rgba(22, 11, 54, 0.55);
	--fx-hairline: rgba(43, 15, 103, 0.10);
	--fx-hairline-strong: rgba(43, 15, 103, 0.22);
	--fx-success: #22C55E;
	--fx-danger: #E24C4B;

	--fx-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--fx-font-sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
	--fx-font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

/* ---------- Base page frame ---------- */
.fx-page {
	font-family: var(--fx-font-sans);
	color: var(--fx-ink);
	background: var(--fx-surface);
	background-image:
		radial-gradient(1200px 600px at 85% -10%, rgba(124, 77, 255, 0.18), transparent 60%),
		radial-gradient(900px 500px at -10% 20%, rgba(185, 164, 255, 0.25), transparent 55%),
		linear-gradient(180deg, #F6F4FF 0%, #EFEAFF 100%);
	background-attachment: fixed;
	position: relative;
	overflow: hidden;
	padding-bottom: 0;
}
.fx-page::before {
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(43, 15, 103, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(43, 15, 103, 0.05) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
	pointer-events: none;
	z-index: 0;
}
.fx-page > * { position: relative; z-index: 1; }

.fx-page p, .fx-page h1, .fx-page h2, .fx-page h3, .fx-page h4 {
	margin: 0;
}
.fx-num {
	font-family: var(--fx-font-mono);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ---------- Editorial hero ---------- */
.fx-hero {
	padding: 5.5rem 0 3.5rem;
	border-bottom: 1px solid var(--fx-hairline);
}
.fx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--fx-font-mono);
	font-size: .7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--fx-violet-700);
	padding: .6rem 1rem;
	border: 1px solid var(--fx-hairline);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgba(43, 15, 103, 0.06), 0 6px 20px -12px rgba(43, 15, 103, 0.2);
}
.fx-eyebrow .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #22C55E;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
	animation: fxPulse 2.4s ease-in-out infinite;
}
@keyframes fxPulse {
	50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.fx-headline {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-size: clamp(2.6rem, 6.2vw, 5.6rem);
	line-height: .96;
	letter-spacing: -0.02em;
	color: var(--fx-primary);
	font-variation-settings: "opsz" 144, "SOFT" 20;
	margin-top: 1.6rem;
}
.fx-headline em {
	font-style: italic;
	font-weight: 400;
	background: linear-gradient(100deg, var(--fx-violet-600) 0%, var(--fx-violet-500) 40%, var(--fx-violet-300) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.fx-standfirst {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	line-height: 1.55;
	color: var(--fx-ink-60);
	max-width: 56ch;
	margin-top: 1.5rem;
}
.fx-asat {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--fx-hairline);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fx-muted);
}
.fx-asat .fx-asat-time { color: var(--fx-primary); font-weight: 600; }
.fx-asat .divider {
	flex: 1; height: 1px; background: var(--fx-hairline);
}

/* Hero marginalia / ticker column */
.fx-hero-ticker {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(124, 77, 255, 0.28), transparent 60%),
		linear-gradient(165deg, #1A0A45 0%, #2A0F67 55%, #3E1AA8 100%);
	color: #EFE9FF;
	padding: 2.25rem 1.75rem;
	border-radius: 18px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(43, 15, 103, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.fx-hero-ticker::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.03) 0 1px,
		transparent 1px 28px
	);
	pointer-events: none;
}
.fx-hero-ticker .label {
	font-size: .68rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: rgba(245, 241, 234, 0.55);
}
.fx-hero-ticker .pair {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: .85rem 0;
	border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}
.fx-hero-ticker .pair:last-child { border-bottom: 0; }
.fx-hero-ticker .pair .code {
	font-family: var(--fx-font-mono);
	font-size: .82rem;
	letter-spacing: .08em;
	color: #F5F1EA;
}
.fx-hero-ticker .pair .rate {
	font-family: var(--fx-font-mono);
	font-variant-numeric: tabular-nums;
	font-size: 1rem;
	font-weight: 500;
	color: var(--fx-violet-300);
}
.fx-hero-ticker .caption {
	margin-top: 1.25rem;
	font-family: var(--fx-font-display);
	font-style: italic;
	font-size: .92rem;
	color: rgba(217, 204, 255, 0.7);
	line-height: 1.5;
}
.fx-hero-ticker .label { color: rgba(217, 204, 255, 0.55); }

/* ---------- Section frame ---------- */
.fx-section { padding: 5rem 0; }
.fx-section-head {
	display: flex;
	align-items: flex-end;
	gap: 2rem;
	border-bottom: 1px solid var(--fx-hairline);
	padding-bottom: 1.25rem;
	margin-bottom: 2.5rem;
}
.fx-section-head .num {
	font-family: var(--fx-font-mono);
	font-size: .75rem;
	letter-spacing: .18em;
	color: var(--fx-violet-600);
}
.fx-section-head h2 {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	letter-spacing: -0.01em;
	color: var(--fx-primary);
	flex: 1;
}
.fx-section-head .kicker {
	font-family: var(--fx-font-display);
	font-style: italic;
	color: var(--fx-ink-60);
	max-width: 34ch;
	font-size: .95rem;
	line-height: 1.55;
}

/* ---------- Converter card ---------- */
.fx-converter {
	background: var(--fx-paper);
	border: 1px solid var(--fx-hairline);
	border-radius: 26px;
	padding: 2.25rem 2rem 2rem;
	position: relative;
	box-shadow: 0 40px 80px -30px rgba(43, 15, 103, 0.35), 0 8px 24px -10px rgba(43, 15, 103, 0.15);
	overflow: hidden;
}
.fx-alert-inline {
	margin-bottom: 1.25rem;
	padding: .9rem 1.1rem;
	border: 1px solid rgba(226, 76, 75, 0.22);
	background: rgba(226, 76, 75, 0.06);
	color: #B23A3A;
	border-radius: 14px;
	font-size: .88rem;
	font-family: var(--fx-font-sans);
}
.fx-alert-inline p, .fx-alert-inline ul, .fx-alert-inline li { margin: 0; padding: 0; list-style: none; }
.fx-alert-inline p + p, .fx-alert-inline li + li { margin-top: .25rem; }

.fx-cta.is-loading { opacity: .7; pointer-events: none; }

.fx-field .ccy-static {
	display: inline-flex;
	align-items: center;
	padding: 0 1.1rem;
	border-right: 1px solid var(--fx-hairline);
	font-family: var(--fx-font-sans);
	font-weight: 600;
	letter-spacing: .08em;
	color: var(--fx-violet-700);
	background: var(--fx-violet-100);
	min-width: 108px;
	text-transform: uppercase;
	font-size: .85rem;
}
.fx-swap-static {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--fx-hairline-strong);
	background: #fff;
	color: var(--fx-violet-600);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 .6rem;
	box-shadow: 0 6px 16px -10px rgba(43, 15, 103, 0.35);
}
.pair.pair-hero .rate { font-size: 1.15rem; color: #fff; }

.fx-converter::after {
	content: "";
	position: absolute; left: 0; right: 0; top: 0;
	height: 2px;
	background: linear-gradient(100deg, var(--fx-violet-700) 0%, var(--fx-violet-500) 60%, var(--fx-violet-300) 100%);
}
.fx-converter .lbl {
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--fx-muted);
	font-weight: 600;
	margin-bottom: .5rem;
	display: block;
}
.fx-field {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--fx-hairline-strong);
	border-radius: 14px;
	background: #FAF8FF;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.fx-field:focus-within {
	border-color: var(--fx-violet-500);
	box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.14);
}
.fx-field .ccy {
	border: 0; border-right: 1px solid var(--fx-hairline);
	background: transparent;
	padding: 0 1rem;
	font-family: var(--fx-font-sans);
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--fx-primary);
	min-width: 108px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%235B2EE6' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 30px;
}
.fx-field input.amt {
	border: 0;
	background: transparent;
	flex: 1;
	padding: 1.1rem 1.1rem;
	font-family: var(--fx-font-mono);
	font-variant-numeric: tabular-nums;
	font-size: 1.5rem;
	color: var(--fx-primary);
	outline: none;
	text-align: right;
	min-width: 0;
}
.fx-field input.amt::placeholder { color: rgba(10, 31, 51, 0.3); }

.fx-swap-row {
	display: flex;
	align-items: center;
	margin: 1.25rem 0;
}
.fx-swap-row .rule {
	flex: 1;
	height: 1px;
	background: var(--fx-hairline);
}
.fx-swap-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--fx-hairline-strong);
	background: #FFFFFF;
	color: var(--fx-violet-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 22px -10px rgba(43, 15, 103, 0.35);
	transition: transform .55s cubic-bezier(.65,.05,.15,1), background .25s, color .25s, border-color .25s;
}
.fx-swap-btn:hover {
	background: var(--fx-ink);
	border-color: var(--fx-ink);
	color: #fff;
}
.fx-swap-btn.spin { transform: rotate(180deg); }

.fx-breakdown {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--fx-hairline-strong);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .65rem 1.5rem;
	font-size: .88rem;
}
.fx-breakdown dt {
	color: var(--fx-muted);
	font-weight: 500;
	letter-spacing: .02em;
}
.fx-breakdown dd {
	margin: 0;
	text-align: right;
	color: var(--fx-primary);
	font-family: var(--fx-font-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}
.fx-breakdown dd.up { color: var(--fx-success); }
.fx-breakdown dd.down { color: var(--fx-danger); }

.fx-total {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fx-hairline-strong);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}
.fx-total .lbl-total {
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--fx-muted);
	margin-bottom: .35rem;
}
.fx-total .val {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	font-size: clamp(2.3rem, 4.8vw, 3.6rem);
	line-height: .95;
	letter-spacing: -0.02em;
	color: var(--fx-primary);
}
.fx-total .val .ccy-tag {
	font-family: var(--fx-font-sans);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--fx-violet-600);
	margin-left: .65rem;
	vertical-align: middle;
}
.fx-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	padding: 1rem 1.6rem;
	background: var(--fx-ink);
	color: #fff;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .78rem;
	border: 1px solid var(--fx-ink);
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 20px 40px -18px rgba(22, 11, 54, 0.55);
	overflow: hidden;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
	cursor: pointer;
}
.fx-cta::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg, var(--fx-violet-700), var(--fx-violet-500) 60%, var(--fx-violet-300));
	transform: translateX(-101%);
	transition: transform .55s cubic-bezier(.2,.8,.2,1);
	z-index: 0;
}
.fx-cta > * { position: relative; z-index: 1; }
.fx-cta:hover { transform: translateY(-2px); }
.fx-cta:hover::before { transform: translateX(0); }
.fx-cta svg { transition: transform .3s; }
.fx-cta:hover svg { transform: translateX(4px); }

.fx-cta.ghost {
	background: transparent;
	color: var(--fx-ink);
	box-shadow: none;
	border-color: var(--fx-hairline-strong);
}
.fx-cta.ghost::before { display: none; }
.fx-cta.ghost:hover {
	background: var(--fx-ink);
	color: #fff;
	border-color: var(--fx-ink);
}

.fx-converter-foot {
	margin-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.fx-converter-foot .note {
	font-family: var(--fx-font-display);
	font-style: italic;
	color: var(--fx-muted);
	font-size: .88rem;
	max-width: 32ch;
}

/* ---------- Amount field — out-of-range state ---------- */
.fx-field.is-error {
	border-color: rgba(226, 76, 75, 0.55);
	background: #FFF6F6;
	box-shadow: 0 0 0 3px rgba(226, 76, 75, 0.10);
}
.fx-field.is-error .ccy-static {
	background: #FCE2E2;
	color: #B23A3A;
	border-right-color: rgba(226, 76, 75, 0.22);
}
.fx-field.is-error input.amt { color: #B23A3A; }
.fx-field.shake { animation: fxShake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes fxShake {
	10%, 90% { transform: translate3d(-1px, 0, 0); }
	20%, 80% { transform: translate3d(2px, 0, 0); }
	30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
	40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ---------- Inline editorial alert under the amount field ---------- */
.fx-amount-alert {
	display: grid;
	grid-template-columns: 3px 1fr;
	gap: 1.1rem;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	margin-top: 0;
	padding-top: 0;
	pointer-events: none;
	transition:
		max-height .42s cubic-bezier(.22, .61, .36, 1),
		opacity .28s ease,
		margin-top .35s ease,
		padding-top .35s ease;
}
.fx-amount-alert.is-visible {
	max-height: 360px;
	opacity: 1;
	margin-top: .9rem;
	padding-top: 1rem;
	pointer-events: auto;
}
.fx-amount-alert-rail {
	display: block;
	width: 3px;
	background: linear-gradient(180deg, #E24C4B 0%, rgba(226, 76, 75, 0.18) 100%);
	border-radius: 3px;
}
.fx-amount-alert-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--fx-font-mono);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #B23A3A;
}
.fx-amount-alert-eyebrow .mark {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #E24C4B;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fx-font-sans);
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: 0;
	box-shadow: 0 0 0 4px rgba(226, 76, 75, 0.16);
}
.fx-amount-alert-copy {
	margin-top: .55rem;
	font-family: var(--fx-font-display);
	font-style: italic;
	color: var(--fx-ink-60);
	font-size: .96rem;
	line-height: 1.5;
	max-width: 56ch;
}
.fx-amount-alert-copy .fx-num {
	font-style: normal;
	color: var(--fx-primary);
	font-weight: 600;
}
.fx-amount-alert-actions {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1.4rem;
	flex-wrap: wrap;
}
.fx-amount-alert-cap {
	appearance: none;
	border: 1px solid var(--fx-hairline-strong);
	background: #fff;
	color: var(--fx-ink);
	font-family: var(--fx-font-sans);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .65rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.fx-amount-alert-cap .fx-num {
	font-family: var(--fx-font-mono);
	color: var(--fx-violet-700);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.fx-amount-alert-cap:hover {
	background: var(--fx-ink);
	color: #fff;
	border-color: var(--fx-ink);
	transform: translateY(-1px);
}
.fx-amount-alert-cap:hover .fx-num { color: var(--fx-violet-300); }
.fx-amount-alert-link {
	font-family: var(--fx-font-mono);
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #B23A3A;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border-bottom: 1px solid rgba(226, 76, 75, 0.35);
	padding-bottom: .15rem;
	transition: color .2s ease, border-color .2s ease;
}
.fx-amount-alert-link svg { transition: transform .25s ease; }
.fx-amount-alert-link:hover {
	color: #8E1B1A;
	border-color: #8E1B1A;
}
.fx-amount-alert-link:hover svg { transform: translateX(3px); }

/* CTA muted state while amount is out of range */
.fx-cta.is-disabled {
	pointer-events: none;
	opacity: .35;
	filter: grayscale(0.4);
	box-shadow: none;
}

/* ---------- Side column next to converter ---------- */
.fx-side-card {
	background: var(--fx-paper);
	border: 1px solid var(--fx-hairline);
	border-radius: 22px;
	padding: 1.75rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 0 rgba(43, 15, 103, 0.06), 0 6px 20px -12px rgba(43, 15, 103, 0.2);
}
.fx-side-card h4 {
	font-family: var(--fx-font-display);
	font-weight: 400;
	font-size: 1.15rem;
	color: var(--fx-primary);
	margin-bottom: .75rem;
}
.fx-side-card p {
	color: var(--fx-ink-60);
	font-size: .9rem;
	line-height: 1.55;
}
.fx-side-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: .75rem 0;
	border-bottom: 1px solid var(--fx-hairline);
}
.fx-side-stat:last-child { border-bottom: 0; }
.fx-side-stat .k { font-size: .78rem; color: var(--fx-muted); letter-spacing: .06em; }
.fx-side-stat .v { font-family: var(--fx-font-mono); font-variant-numeric: tabular-nums; color: var(--fx-primary); font-weight: 500; }

/* ---------- Live rates board ---------- */
.fx-board {
	background: var(--fx-paper);
	border: 1px solid var(--fx-hairline);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(43, 15, 103, 0.35), 0 8px 24px -10px rgba(43, 15, 103, 0.15);
}
.fx-board table {
	width: 100%;
	border-collapse: collapse;
}
.fx-board thead th {
	font-size: .66rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--fx-muted);
	text-align: right;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--fx-hairline);
	font-weight: 600;
	background: var(--fx-paper);
}
.fx-board thead th:first-child { text-align: left; }
.fx-board tbody td {
	padding: 1.05rem 1.25rem;
	border-bottom: 1px solid var(--fx-hairline);
	text-align: right;
	font-family: var(--fx-font-mono);
	font-variant-numeric: tabular-nums;
	color: var(--fx-primary);
	font-size: .95rem;
}
.fx-board tbody tr:last-child td { border-bottom: 0; }
.fx-board tbody td:first-child {
	text-align: left;
	font-family: var(--fx-font-sans);
	font-weight: 600;
	letter-spacing: .04em;
}
.fx-board tbody td:first-child .flag {
	display: inline-block;
	width: 36px;
	text-align: center;
	margin-right: .6rem;
	color: var(--fx-violet-700);
	background: var(--fx-violet-100);
	font-family: var(--fx-font-mono);
	font-size: .68rem;
	padding: .25rem 0;
	border: 1px solid var(--fx-violet-200);
	border-radius: 999px;
}
.fx-board tbody tr { transition: background .2s; }
.fx-board tbody tr:hover { background: var(--fx-paper); }
.fx-delta.up { color: var(--fx-success); }
.fx-delta.down { color: var(--fx-danger); }
.fx-delta::before {
	display: inline-block;
	width: 0; height: 0;
	margin-right: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	vertical-align: middle;
}
.fx-delta.up { color: #16A34A; }
.fx-delta.down { color: #DC2626; }
.fx-delta.up::before { border-bottom: 5px solid #16A34A; content: ""; }
.fx-delta.down::before { border-top: 5px solid #DC2626; content: ""; }
.fx-spark { display: inline-block; }
.fx-spark svg { display: block; }

/* ---------- Rate alert module ---------- */
.fx-alert-card {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(124, 77, 255, 0.28), transparent 60%),
		linear-gradient(165deg, #1A0A45 0%, #2A0F67 55%, #3E1AA8 100%);
	color: #EFE9FF;
	padding: 2.5rem;
	border-radius: 26px;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 40px 80px -30px rgba(43, 15, 103, 0.5);
}
.fx-alert-card::after {
	content: "";
	position: absolute;
	right: -80px; bottom: -80px;
	width: 260px; height: 260px;
	border: 1px solid rgba(185, 164, 255, 0.22);
	border-radius: 50%;
}
.fx-alert-card::before {
	content: "";
	position: absolute;
	right: -40px; bottom: -40px;
	width: 180px; height: 180px;
	border: 1px solid rgba(185, 164, 255, 0.18);
	border-radius: 50%;
}
.fx-alert-card h3 {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-size: 1.9rem;
	letter-spacing: -0.01em;
	margin-bottom: .5rem;
	position: relative;
}
.fx-alert-card p {
	color: rgba(217, 204, 255, 0.78);
	font-family: var(--fx-font-display);
	font-style: italic;
	position: relative;
	max-width: 42ch;
}
.fx-alert-form {
	position: relative;
	margin-top: 1.75rem;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: .75rem;
}
.fx-alert-form select,
.fx-alert-form input {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(217, 204, 255, 0.18);
	color: #fff;
	padding: .9rem 1rem;
	font-family: var(--fx-font-mono);
	font-size: .9rem;
	border-radius: 12px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.fx-alert-form select:focus,
.fx-alert-form input:focus {
	border-color: var(--fx-violet-300);
	box-shadow: 0 0 0 3px rgba(185, 164, 255, 0.18);
}
.fx-alert-form select option { color: var(--fx-primary); background: #FFFFFF; }
.fx-alert-form .fx-cta {
	background: #fff;
	color: var(--fx-ink);
	border-color: #fff;
}
.fx-alert-form .fx-cta::before {
	background: linear-gradient(100deg, var(--fx-violet-300), #fff 60%, var(--fx-violet-200));
}
.fx-alert-form .fx-cta:hover { color: var(--fx-ink); }
.fx-alert-msg {
	margin-top: 1rem;
	color: var(--fx-violet-300);
	font-family: var(--fx-font-display);
	font-style: italic;
	font-size: .9rem;
	min-height: 1.2rem;
	position: relative;
}

/* ---------- How it works strip ---------- */
.fx-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--fx-hairline);
	border-bottom: 1px solid var(--fx-hairline);
}
.fx-step {
	padding: 2.25rem 1.75rem;
	border-right: 1px solid var(--fx-hairline);
	position: relative;
}
.fx-step:last-child { border-right: 0; }
.fx-step .num {
	font-family: var(--fx-font-mono);
	color: var(--fx-violet-600);
	font-size: .75rem;
	letter-spacing: .22em;
}
.fx-step h4 {
	font-family: var(--fx-font-display);
	font-weight: 400;
	font-size: 1.35rem;
	color: var(--fx-primary);
	margin: .65rem 0 .75rem;
}
.fx-step p {
	color: var(--fx-ink-60);
	font-size: .9rem;
	line-height: 1.55;
}

/* ---------- Trust strip ---------- */
.fx-trust {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(124, 77, 255, 0.28), transparent 60%),
		linear-gradient(165deg, #1A0A45 0%, #2A0F67 55%, #3E1AA8 100%);
	color: #EFE9FF;
	padding: 3.5rem 0;
	position: relative;
	overflow: hidden;
}
.fx-trust::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(90deg, rgba(185, 164, 255, 0.08) 0 1px, transparent 1px 120px);
	pointer-events: none;
}
.fx-trust h3 {
	font-family: var(--fx-font-display);
	font-style: italic;
	font-weight: 300;
	font-size: 1.4rem;
	color: rgba(217, 204, 255, 0.8);
	max-width: 38ch;
	line-height: 1.4;
}
.fx-trust-items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
	position: relative;
}
.fx-trust-item {
	border-left: 1px solid rgba(185, 164, 255, 0.4);
	padding-left: 1.25rem;
}
.fx-trust-item .k {
	font-family: var(--fx-font-mono);
	font-size: .7rem;
	letter-spacing: .2em;
	color: var(--fx-violet-300);
	text-transform: uppercase;
}
.fx-trust-item .v {
	font-family: var(--fx-font-display);
	font-weight: 400;
	font-size: 1.15rem;
	margin-top: .4rem;
	color: #fff;
	line-height: 1.3;
}

/* ---------- FAQ accordion ---------- */
.fx-faq {
	border-top: 1px solid var(--fx-hairline);
}
.fx-faq-item {
	border-bottom: 1px solid var(--fx-hairline);
}
.fx-faq-q {
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	background: transparent;
	border: 0;
	padding: 1.75rem 0;
	text-align: left;
	cursor: pointer;
}
.fx-faq-q .q-num {
	font-family: var(--fx-font-mono);
	color: var(--fx-violet-500);
	font-size: .75rem;
	letter-spacing: .18em;
	min-width: 44px;
	padding-top: .35rem;
}
.fx-faq-q .q-text {
	flex: 1;
	font-family: var(--fx-font-display);
	font-weight: 400;
	font-size: clamp(1.1rem, 1.8vw, 1.45rem);
	color: var(--fx-primary);
	letter-spacing: -0.005em;
	line-height: 1.35;
}
.fx-faq-q .q-toggle {
	width: 30px; height: 30px;
	border: 1px solid var(--fx-hairline-strong);
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
	margin-top: .35rem;
	transition: background .2s, border-color .2s;
}
.fx-faq-q .q-toggle::before,
.fx-faq-q .q-toggle::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 10px; height: 1px;
	background: var(--fx-ink);
	transform: translate(-50%, -50%);
	transition: transform .3s cubic-bezier(.65,.05,.15,1);
}
.fx-faq-q .q-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.fx-faq-item.open .q-toggle { background: var(--fx-ink); border-color: var(--fx-ink); }
.fx-faq-item.open .q-toggle::before,
.fx-faq-item.open .q-toggle::after { background: #fff; }
.fx-faq-item.open .q-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.fx-faq-a {
	display: none;
	padding: 0 0 1.75rem 3rem;
	max-width: 62ch;
	color: var(--fx-ink-60);
	font-size: 1rem;
	line-height: 1.65;
}
.fx-faq-a p + p { margin-top: .9rem; }

/* ---------- Closing CTA band ---------- */
.fx-closing {
	background: linear-gradient(180deg, #EFEAFF, #F6F4FF);
	padding: 5rem 0;
	border-top: 1px solid var(--fx-hairline);
}
.fx-closing .frame {
	background: #FFFFFF;
	border: 1px solid var(--fx-hairline);
	border-radius: 26px;
	padding: 3rem 3rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(43, 15, 103, 0.35), 0 8px 24px -10px rgba(43, 15, 103, 0.15);
}
.fx-closing .frame::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--fx-violet-700), var(--fx-violet-500) 60%, var(--fx-violet-300));
}
.fx-closing h2 {
	font-family: var(--fx-font-display);
	font-weight: 300;
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--fx-primary);
	letter-spacing: -0.015em;
	line-height: 1.05;
}
.fx-closing h2 em {
	font-style: italic;
	background: linear-gradient(100deg, var(--fx-violet-600) 0%, var(--fx-violet-500) 40%, var(--fx-violet-300) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.fx-closing p {
	color: var(--fx-ink-60);
	font-family: var(--fx-font-display);
	font-style: italic;
	margin-top: 1rem;
	max-width: 48ch;
}
.fx-closing .actions {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	align-items: center;
}

/* ---------- Staggered reveal ---------- */
.fx-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
.fx-reveal.in { opacity: 1; transform: none; }

/* Dark mode intentionally omitted to match the Contact page aesthetic. */

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.fx-hero { padding: 4rem 0 2.5rem; }
	.fx-section { padding: 3.5rem 0; }
	.fx-steps { grid-template-columns: 1fr 1fr; }
	.fx-step { border-bottom: 1px solid var(--fx-hairline); }
	.fx-step:nth-child(2) { border-right: 0; }
	.fx-trust-items { grid-template-columns: 1fr 1fr; }
	.fx-alert-form { grid-template-columns: 1fr; }
	.fx-section-head { flex-wrap: wrap; }
	.fx-closing .frame { padding: 2.25rem 1.75rem; }
}
@media (max-width: 575.98px) {
	.fx-hero { padding: 3rem 0 2rem; }
	.fx-converter { padding: 1.5rem 1.25rem; }
	.fx-steps { grid-template-columns: 1fr; }
	.fx-step { border-right: 0; border-bottom: 1px solid var(--fx-hairline); }
	.fx-step:last-child { border-bottom: 0; }
	.fx-trust-items { grid-template-columns: 1fr; }
	.fx-board thead th, .fx-board tbody td { padding: .85rem .75rem; font-size: .82rem; }
	.fx-board thead th.hide-sm, .fx-board tbody td.hide-sm { display: none; }
	.fx-total { flex-direction: column; align-items: flex-start; }
	.fx-field input.amt { font-size: 1.2rem; padding: .9rem; }
	.fx-field .ccy { min-width: 88px; }
}
