*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

html {
	overflow-x: clip;
}

:root {
	--tf-blue: #1746ea;
	--tf-blue-deep: #0039ff;
	--tf-white: #ffffff;
	--tf-grey: #bababa;
	--tf-cyan: #5dd7f2;
	--tf-green: #00c735;
	--tf-second-green: #00c735;
	--tf-red: #ff4b4b;
	--tf-overview-name-from: rgba(23, 70, 234, 0.73);
	--tf-overview-name-to: #5dd7f2;
	--tf-overview-name-fallback: #5dd7f2;
	--tf-leaderboard-rank-1: #dcf25d;
	--tf-leaderboard-rank-2: #c9c9c9;
	--tf-leaderboard-rank-3: #ff8f5e;
	/* Learning materials — Featured / kind badges (portal-aligned) */
	--tf-learning-featured: #36b1e0;
	--tf-learning-featured-bg: color-mix(
		in srgb,
		var(--tf-learning-featured) 10%,
		transparent
	);
	--tf-learning-meta-bg: rgb(15 16 36 / 0.4);
	--tf-learning-play-fill: #192d3e;
	--tf-learning-kind-video-bg: color-mix(in srgb, var(--tf-blue) 60%, transparent);
	--tf-learning-kind-article-bg: color-mix(
		in srgb,
		var(--tf-second-green) 60%,
		transparent
	);
	--tf-bg: #010106;
	--tf-surface: #121821;
	--tf-surface-tip: #050510;
	--tf-border-subtle: rgba(255, 255, 255, 0.1);
	--tf-skeleton: var(--tf-border-subtle);
	--tf-skeleton-soft: rgb(255 255 255 / 0.05);
	/* Help article Yes/No — Default / Hover / Pressed+selected */
	--tf-feedback-btn-radius: 16px;
	--tf-feedback-btn-bg-hover: rgba(255, 255, 255, 0.1);
	--tf-feedback-btn-bg-active: rgba(255, 255, 255, 0.12);
	--tf-feedback-btn-border-active: rgba(255, 255, 255, 0.6);
	/* Gradient #1 — Figma inline link fill (Rule Checker / Trading Rules) */
	--gradient-1: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.73) 0%,
		#5dd7f2 100%
	);
	--tf-link-gradient: var(--gradient-1);
	--tf-glass-from: rgba(3, 12, 53, 0.2);
	--tf-glass-to: rgba(0, 0, 0, 0.2);
	/* Header Support dropdown panel */
	--tf-header-submenu-from: rgba(3, 12, 53, 0.5);
	--tf-header-submenu-to: rgba(0, 0, 0, 0.5);
	--tf-header-submenu-inset:
		inset 0 0 2px 0 #0a0f2f,
		inset 0 0 2px 0 #0a0f2f;
	--tf-header-submenu-divider: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.01) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.01) 100%
	);
	--tf-header-submenu-glow-fill: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.73) 0%,
		#5dd7f2 100%
	);
	--tf-header-submenu-blur: 7px;
	--tf-header-drawer-from: rgba(3, 12, 53, 0.3);
	--tf-header-drawer-to: rgba(0, 0, 0, 0.3);
	--tf-header-drawer-glow: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.73) 0%,
		#5dd7f2 100%
	);
	--tf-header-drawer-divider: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.01) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.01) 100%
	);
	--tf-container: 1200px;
	--tf-radius-sm: 12px;
	--tf-radius-lg: 24px;
	--tf-font: "Funnel Display", sans-serif;
	/*
	 * Portal CSS glass for small controls (not WebGL GlassSurface).
	 * From globals.css — Input / Auth card rim: Light -45°, intensity ~0.8.
	 * Bright TL + weaker BR; TR/BL stay dark (no full perimeter stroke).
	 */
	--tf-glass-blur: 12px;
	--tf-glass-rim-width: 1px;
	--tf-glass-fill: linear-gradient(
		180deg,
		var(--tf-glass-from) 0%,
		var(--tf-glass-to) 100%
	);
	--tf-glass-rim:
		radial-gradient(
			circle at top left,
			rgba(255, 255, 255, 0.9) 0%,
			rgba(255, 255, 255, 0.4) 5px,
			rgba(255, 255, 255, 0.12) 10px,
			rgba(255, 255, 255, 0) 15px
		),
		radial-gradient(
			circle at bottom right,
			rgba(255, 255, 255, 0.42) 0%,
			rgba(255, 255, 255, 0.16) 5px,
			rgba(255, 255, 255, 0) 12px
		),
		radial-gradient(
			ellipse 95% 78% at 0% 0%,
			rgba(255, 255, 255, 0.48) 0%,
			rgba(255, 255, 255, 0.26) 42%,
			rgba(255, 255, 255, 0) 82%
		),
		radial-gradient(
			ellipse 78% 68% at 100% 100%,
			rgba(255, 255, 255, 0.24) 0%,
			rgba(255, 255, 255, 0.12) 40%,
			rgba(255, 255, 255, 0) 78%
		);
	--tf-glass-inset: inset 0 0 2px 0 rgba(99, 99, 99, 0.55);

	/* Secondary Button — Platform / UI Kit (Default / Hovered / Pressed) */
	--tf-btn-secondary-fill: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.2) 0%,
		rgba(0, 0, 0, 0.2) 100%
	);
	--tf-btn-secondary-fill-hover: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.4) 0%,
		rgba(0, 0, 0, 0.4) 100%
	);
	--tf-btn-secondary-fill-pressed: linear-gradient(
		180deg,
		#030c35 0%,
		#000000 100%
	);
	--tf-btn-secondary-blur: var(--tf-glass-blur);
	--tf-btn-secondary-glow: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.73) 0%,
		#5dd7f2 100%
	);

	/* Primary Button — Platform / UI Kit (Default / Hovered / Pressed) */
	--tf-gradient-cta: linear-gradient(180deg, #1746ea 0%, #0039ff 100%);
	--tf-gradient-cta-hover: linear-gradient(180deg, #1746ea 0%, #002abd 100%);
	--tf-gradient-cta-pressed: linear-gradient(180deg, #001d82 0%, #002abd 100%);
	/* Stroke: gradient INSIDE 1px — top blue@73%, bottom cyan */
	--tf-cta-border-gradient: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.73) 0%,
		#5dd7f2 100%
	);
	--tf-cta-shadow: 0 2px 7.2px 4px rgba(23, 70, 234, 0.2);
	--tf-cta-inset-glow: inset 0 0 13px rgba(230, 230, 230, 0.25);
	--tf-chip-bg-active: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.8) 0%,
		rgba(0, 0, 0, 0.8) 100%
	);
	--tf-chip-bg-default: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.2) 0%,
		rgba(0, 0, 0, 0.2) 100%
	);
	--tf-chip-border-default: #1a3347;
	--tf-chip-border-gradient-end: #2d2d38;
	--tf-chip-border-active: rgba(23, 70, 234, 0.73);
	--tf-chip-height: 40px;
	--tf-chip-width-type: 120px;
	--tf-chip-width-currency: 113px;
	--tf-chip-width-rules: 180px;
	--tf-chip-width-account: 140px;
	--tf-leaderboard-chip-height: 48px;
	--tf-chip-radius: 12px;
	--tf-chip-border-gradient-active: var(--tf-cta-border-gradient);
	/* HIW step surface — Figma 0.1 fill + double inset (active + inactive) */
	--tf-hiw-step-fill: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.1) 0%,
		rgba(0, 0, 0, 0.1) 100%
	);
	--tf-hiw-step-inset:
		inset 0 0 2px 0 #0a0f2f,
		inset 0 0 2px 0 #0a0f2f;

	/* Payout Calculator + Portal Input — fill / inset */
	--tf-input-fill: rgba(22, 23, 47, 0.5);
	--tf-input-blur: 12px;
	--tf-input-glass-rim-width: 1px;
	--tf-input-glass-rim:
		radial-gradient(
			circle at top left,
			rgba(255, 255, 255, 0.9) 0%,
			rgba(255, 255, 255, 0.4) 5px,
			rgba(255, 255, 255, 0.12) 10px,
			rgba(255, 255, 255, 0) 15px
		),
		radial-gradient(
			circle at bottom right,
			rgba(255, 255, 255, 0.42) 0%,
			rgba(255, 255, 255, 0.16) 5px,
			rgba(255, 255, 255, 0) 12px
		);
	--tf-input-rim-default: #636363;
	--tf-input-rim-active: #918dff;
	--tf-input-inset-soft: inset 0 0 9px 0 rgba(255, 255, 255, 0.08);
	/* Combined inset for selects / legacy shells */
	--tf-input-inset:
		inset 0 0 2px 0 var(--tf-input-rim-default),
		var(--tf-input-inset-soft);
	--tf-radius-input: var(--tf-radius-sm);
	--tf-second-grey: #dbdfe2;
	--tf-ce-slider-fill: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.58) 0%,
		rgba(93, 215, 242, 0.8) 100%
	);
	--tf-ce-slider-track: linear-gradient(
		180deg,
		rgba(23, 70, 234, 0.146) 0%,
		rgba(93, 215, 242, 0.2) 100%
	);

	--tf-duration-fast: 120ms;
	--tf-duration-normal: 200ms;
	--tf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* Portal dropdown panel / items */
	--tf-dropdown-radius: 16px;
	--tf-dropdown-item-radius: 12px;
	--tf-dropdown-shadow: 0 4px 15px 0 rgba(36, 80, 174, 0.25);
	--tf-dropdown-panel-bg:
		linear-gradient(180deg, rgba(3, 42, 53, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
		#000000;
	--tf-dropdown-item-bg: linear-gradient(
		180deg,
		rgba(3, 12, 53, 0.2) 0%,
		rgba(0, 0, 0, 0.2) 100%
	);
	--tf-dropdown-item-rim: conic-gradient(
		from 0deg at 50% 50%,
		rgba(255, 255, 255, 0.14) 0deg,
		rgba(255, 255, 255, 0.15) 60deg,
		rgba(255, 255, 255, 0.32) 72deg,
		rgba(255, 255, 255, 0.02) 78.5deg,
		rgba(255, 255, 255, 0.14) 88deg,
		rgba(255, 255, 255, 0.24) 101.5deg,
		rgba(255, 255, 255, 0.14) 115deg,
		rgba(255, 255, 255, 0.14) 245deg,
		rgba(255, 255, 255, 0.32) 252deg,
		rgba(255, 255, 255, 0.02) 258.5deg,
		rgba(255, 255, 255, 0.14) 268deg,
		rgba(255, 255, 255, 0.3) 281.5deg,
		rgba(255, 255, 255, 0.15) 300deg,
		rgba(255, 255, 255, 0.14) 360deg
	);
	--tf-dropdown-panel-rim: conic-gradient(
		from 0deg at 50% 50%,
		rgba(255, 255, 255, 0.15) 0deg,
		rgba(255, 255, 255, 0.15) 30deg,
		rgba(255, 255, 255, 0.32) 40deg,
		rgba(255, 255, 255, 0.02) 46.8deg,
		rgba(255, 255, 255, 0.14) 55deg,
		rgba(255, 255, 255, 0.22) 133.2deg,
		rgba(255, 255, 255, 0.14) 160deg,
		rgba(255, 255, 255, 0.14) 210deg,
		rgba(255, 255, 255, 0.32) 220deg,
		rgba(255, 255, 255, 0.02) 226.8deg,
		rgba(255, 255, 255, 0.14) 236deg,
		rgba(255, 255, 255, 0.3) 313.2deg,
		rgba(255, 255, 255, 0.15) 340deg,
		rgba(255, 255, 255, 0.15) 360deg
	);
	--tf-dropdown-panel-blur: 20px;
}

body.tf-home-body {
	background: var(--tf-bg);
	color: var(--tf-white);
	font-family: var(--tf-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/*
 * Platform shell backdrop (waves + particles) — fixed viewport layer.
 * Content (.tf-home) stacks above; section fills stay transparent so light shows through.
 */
.tf-shell-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	/* Own compositor layer — keep animated bitmaps off the main document paint. */
	isolation: isolate;
	contain: paint layout style;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.tf-shell-backdrop__preview,
.tf-shell-backdrop__wave,
.tf-shell-backdrop__particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.tf-shell-backdrop__preview {
	z-index: 0;
	object-fit: cover;
	opacity: 1;
	transition: opacity 500ms ease;
}

.tf-shell-backdrop__preview--hidden {
	opacity: 0;
}

.tf-shell-backdrop__particles {
	z-index: 0;
}

.tf-shell-backdrop__wave {
	z-index: 1;
	opacity: 0;
	transition: opacity 500ms ease;
}

.tf-shell-backdrop__wave--revealed {
	opacity: 1;
}

.tf-shell-backdrop--static .tf-shell-backdrop__wave,
.tf-shell-backdrop--static .tf-shell-backdrop__particles {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.tf-shell-backdrop__preview,
	.tf-shell-backdrop__wave {
		transition: none;
	}
}

/*
 * Shared glass surface — hang `.tf-glass` on any block.
 * Content stays above rim/inset via `.tf-glass > *`.
 */
.tf-glass {
	position: relative;
	border: 0;
	background: var(--tf-glass-fill);
	backdrop-filter: blur(var(--tf-glass-blur));
	-webkit-backdrop-filter: blur(var(--tf-glass-blur));
	overflow: hidden;
	isolation: isolate;
}

.tf-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: var(--tf-glass-rim-width);
	background: var(--tf-glass-rim);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.tf-glass::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow: var(--tf-glass-inset);
	pointer-events: none;
}

.tf-glass > * {
	position: relative;
	z-index: 3;
}

/*
 * Input — Portal `.tf-input` (CSS glass rim + INNER_SHADOW states).
 * Tiny control: CSS rim only, no WebGL.
 */
.tf-input {
	--tf-input-rim: var(--tf-input-rim-default);
	--tf-input-text: var(--tf-grey);
	position: relative;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	gap: 8px;
	isolation: isolate;
	border-radius: var(--tf-radius-input);
	background: var(--tf-input-fill);
	backdrop-filter: blur(var(--tf-input-blur));
	-webkit-backdrop-filter: blur(var(--tf-input-blur));
	font-family: var(--tf-font);
	transition: opacity var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-input::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: var(--tf-input-glass-rim-width);
	background: var(--tf-input-glass-rim);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.tf-input::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow:
		inset 0 0 2px 0 var(--tf-input-rim),
		var(--tf-input-inset-soft);
	pointer-events: none;
	transition: box-shadow var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-input--56 {
	min-height: 56px;
	padding: 16px 16px 16px 24px;
}

.tf-input--48 {
	min-height: 48px;
	padding: 12px 16px 12px 24px;
}

.tf-input:focus-within {
	--tf-input-rim: var(--tf-input-rim-active);
	--tf-input-text: var(--tf-second-grey);
}

.tf-input__control {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tf-input-text);
	font: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.504px;
	outline: none;
	appearance: none;
	transition: color var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-input__control::placeholder {
	color: var(--tf-grey);
	opacity: 1;
}

.tf-input:focus-within .tf-input__control:not(:placeholder-shown) {
	color: var(--tf-second-grey);
}

.tf-input__control:not(:placeholder-shown) {
	color: var(--tf-white);
}

.tf-input__control::-webkit-search-decoration,
.tf-input__control::-webkit-search-cancel-button {
	appearance: none;
}

.tf-input__control:-webkit-autofill,
.tf-input__control:-webkit-autofill:hover,
.tf-input__control:-webkit-autofill:focus,
.tf-input__control:-webkit-autofill:active {
	-webkit-text-fill-color: var(--tf-white);
	caret-color: var(--tf-white);
	box-shadow: 0 0 0 1000px var(--tf-input-fill) inset;
	transition:
		color var(--tf-duration-normal) var(--tf-ease-out),
		background-color 99999s ease-out 0s;
}

.tf-input__leading {
	position: relative;
	z-index: 3;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	pointer-events: none;
}

.tf-input__leading img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.tf-input__trailing {
	position: relative;
	z-index: 3;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.tf-input__trailing img {
	display: block;
	width: 12px;
	height: 7px;
	max-width: none;
	object-fit: contain;
}

/* Portal Select field wrapper (title + shell) */
.tf-input-field {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 4px;
}

.tf-input-field__title {
	margin: 0;
	padding-left: 16px;
	color: var(--tf-white);
	font-family: var(--tf-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: -0.392px;
}

.tf-input--select-shell {
	cursor: pointer;
	width: 100%;
}

.tf-input__control--select {
	appearance: none;
	cursor: pointer;
	color: var(--tf-white);
}

.tf-input__control--select option {
	color: var(--tf-white);
	background: var(--tf-surface);
}

/* Custom select (Portal DropdownPanel) — Account size etc. */
.tf-ce-select {
	position: relative;
	width: 100%;
}

.tf-ce-select__trigger {
	width: 100%;
	margin: 0;
	border: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.tf-ce-select__value {
	pointer-events: none;
	color: var(--tf-white);
}

.tf-ce-select__trigger[aria-expanded="true"] {
	--tf-input-rim: var(--tf-input-rim-active);
}

.tf-ce-select__trigger[aria-expanded="true"] .tf-ce-select__value {
	color: var(--tf-second-grey);
}

.tf-ce-select__native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.tf-dropdown-panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 12px;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--tf-dropdown-radius);
	background: var(--tf-dropdown-panel-bg);
	box-shadow: var(--tf-dropdown-shadow);
	backdrop-filter: blur(var(--tf-dropdown-panel-blur));
	-webkit-backdrop-filter: blur(var(--tf-dropdown-panel-blur));
	z-index: 200;
	/* Thin rim like Different by design cards */
	--tf-glass-rim-width: 1px;
	--tf-glass-from: rgba(3, 12, 53, 0.1);
	--tf-glass-to: rgba(0, 0, 0, 0.1);
	--tf-glass-inset: inset 0 0 2px 0 #0a0f2f;
}

.tf-dropdown-panel[hidden] {
	display: none !important;
}

.tf-dropdown-panel--field {
	width: 100%;
	max-height: 304px;
}

.tf-dropdown-panel--portaled {
	position: fixed;
	margin: 0;
}

/* CSS rim fallback; WebGL takes over when .tf-glass--glass-shader is set */
.tf-dropdown-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: var(--tf-glass-rim-width);
	background: var(--tf-dropdown-panel-rim);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.tf-dropdown-panel.tf-glass--glass-shader::before {
	content: none;
	background: none;
	-webkit-mask: none;
	mask: none;
	padding: 0;
}

.tf-dropdown-item {
	position: relative;
	z-index: 1;
	display: flex;
	box-sizing: border-box;
	height: 40px;
	width: 100%;
	cursor: pointer;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	border: 0;
	border-radius: var(--tf-dropdown-item-radius);
	background: transparent;
	padding: 8px 16px;
	color: var(--tf-white);
	font-family: var(--tf-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.448px;
	text-align: left;
	transition: background var(--tf-duration-fast) var(--tf-ease-out);
}

.tf-dropdown-item:hover,
.tf-dropdown-item[data-active="true"],
.tf-dropdown-item[aria-selected="true"] {
	background: var(--tf-dropdown-item-bg);
}

.tf-dropdown-item:hover::before,
.tf-dropdown-item[data-active="true"]::before,
.tf-dropdown-item[aria-selected="true"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	padding: var(--tf-glass-rim-width);
	background: var(--tf-dropdown-item-rim);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.tf-dropdown-item__label {
	position: relative;
	z-index: 2;
	white-space: nowrap;
}

.tf-dropdown-item__pressed-glow {
	pointer-events: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 196px;
	height: 40px;
}

.tf-dropdown-item__pressed-glow-inner {
	position: absolute;
	inset: -667.14% -161.79% -669.42% -112.54%;
}

.tf-dropdown-item__pressed-glow-inner img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
}

.tf-dropdown-item__hover-glow {
	pointer-events: none;
	position: absolute;
	top: calc(50% + 0.46px);
	left: calc(50% + 208.27px);
	z-index: 0;
	display: none;
	width: 604.536px;
	height: 480.088px;
	translate: -50% -50%;
	align-items: center;
	justify-content: center;
}

.tf-dropdown-item:hover:not([aria-selected="true"]) .tf-dropdown-item__hover-glow,
.tf-dropdown-item[data-active="true"]:not([aria-selected="true"]) .tf-dropdown-item__hover-glow {
	display: flex;
}

.tf-dropdown-item__hover-glow-rotate {
	position: relative;
	flex: none;
	width: 227px;
	height: 567px;
	rotate: -60deg;
}

.tf-dropdown-item__hover-glow-ellipse {
	position: absolute;
	inset: -20.25% -50.57%;
}

.tf-dropdown-item__hover-glow-ellipse img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
}

/*
 * WebGL glass rim (Platform GlassSurface port) — opt-in via [data-tf-glass-shader].
 * Fill / blur stay CSS; shader paints rim. Works on `.tf-glass` shells and secondary CTAs.
 */
.tf-glass-surface {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

/*
 * `.tf-glass > *` forces position:relative for content stacking.
 * Keep the WebGL shell out of flex/flow or mount causes CLS.
 */
.tf-glass > .tf-glass-surface,
.tf-btn > .tf-glass-surface {
	position: absolute;
	z-index: 2;
}

.tf-glass-surface__canvas {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 0.15s ease-out;
	pointer-events: none;
}

.tf-glass-surface__canvas[data-glass-ready="true"] {
	opacity: 1;
}

/* Drop CSS rim / inset while shader path is active (avoid double edge). */
.tf-glass--glass-shader::before {
	content: none;
	background: none;
	-webkit-mask: none;
	mask: none;
	padding: 0;
}

.tf-glass--glass-shader::after {
	content: none;
	box-shadow: none;
}

/* Shared buttons */

.tf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 8px 24px;
	border-radius: var(--tf-radius-sm);
	border: none;
	text-decoration: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.448px;
	color: var(--tf-white);
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
}

/*
 * Primary Button — Platform `.tf-btn-primary` (gradient fill + gradient
 * stroke via padding-box/border-box; no mask rim — masks thin the ring).
 */
.tf-btn--primary {
	--tf-btn-fill: var(--tf-gradient-cta);
	width: 384px;
	max-width: 100%;
	height: 56px;
	min-height: 56px;
	padding: 16px;
	overflow: visible;
	border: 1px solid transparent;
	border-radius: var(--tf-radius-sm);
	background:
		var(--tf-btn-fill) padding-box,
		var(--tf-cta-border-gradient) border-box;
	background-clip: padding-box, border-box;
	box-shadow: var(--tf-cta-shadow);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.028em;
	text-align: center;
	transition:
		background var(--tf-duration-fast) var(--tf-ease-out),
		opacity var(--tf-duration-fast) var(--tf-ease-out),
		box-shadow var(--tf-duration-fast) var(--tf-ease-out);
}

/* Inner band blur (Portal `.tf-btn-primary__glow`) */
.tf-btn--primary::before {
	content: "";
	position: absolute;
	inset: 37.5% 5.56% 35.42%;
	z-index: 0;
	background: var(--tf-blue);
	filter: blur(21.4px);
	pointer-events: none;
}

/* Soft inset highlight */
.tf-btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: var(--tf-cta-inset-glow);
	pointer-events: none;
}

.tf-btn--primary .tf-btn__label {
	position: relative;
	z-index: 1;
	flex: 1 0 0;
	min-width: 0;
}

/*
 * Magnetic primary — Platform MagneticChallenge.
 * Hit zone stays fixed; the button + label translate toward the pointer.
 */
.tf-magnetic {
	display: inline-flex;
	max-width: 100%;
	vertical-align: top;
}

.tf-magnetic > .tf-btn--primary {
	max-width: 100%;
}

/* Full-width primary CTAs keep stretching after magnetic wrap. */
.tf-home-ce__card-body > .tf-magnetic,
.tf-leaderboard-cta__inner > .tf-magnetic {
	display: block;
	width: 100%;
}

.tf-home-ce__card-body > .tf-magnetic > .tf-btn--primary,
.tf-leaderboard-cta__inner > .tf-magnetic > .tf-btn--primary {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.tf-magnetic > .tf-btn--primary,
	.tf-magnetic .tf-btn__label,
	.tf-magnetic .tf-btn__icon {
		translate: none !important;
	}
}

/*
 * Card tilt — Platform TiltCard (default 10°).
 * Opt-in [data-tf-tilt] on the card; --tilt-x / --tilt-y from JS.
 */
[data-tf-tilt] {
	transform: perspective(1200px) rotateX(var(--tilt-x, 0deg))
		rotateY(var(--tilt-y, 0deg));
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
	transform-style: preserve-3d;
	will-change: transform;
}

[data-tf-tilt][data-tilting] {
	transition-duration: 180ms;
}

@media (max-width: 767px) {
	[data-tf-tilt] {
		transform: none;
		transition: none;
		will-change: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-tf-tilt] {
		transform: none;
		transition: none;
		will-change: auto;
	}
}

/*
 * Secondary Button — fill states + glow; rim via WebGL (`data-tf-glass-shader`)
 * with CSS TL/BR rim as fallback when WebGL is unavailable.
 */
.tf-btn--secondary {
	--tf-btn-secondary-bg: var(--tf-btn-secondary-fill);
	min-height: 40px;
	height: 40px;
	padding: 8px 24px;
	border: 0;
	border-radius: var(--tf-radius-sm);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: -0.448px;
	background: var(--tf-btn-secondary-bg);
	backdrop-filter: blur(var(--tf-btn-secondary-blur));
	-webkit-backdrop-filter: blur(var(--tf-btn-secondary-blur));
	transition:
		background var(--tf-duration-fast) var(--tf-ease-out),
		backdrop-filter var(--tf-duration-fast) var(--tf-ease-out),
		opacity var(--tf-duration-fast) var(--tf-ease-out);
}

/* CSS rim fallback (hidden when `.tf-glass--glass-shader` is on) */
.tf-btn--secondary::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: var(--tf-glass-rim-width);
	background: var(--tf-glass-rim);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	transition: opacity var(--tf-duration-fast) var(--tf-ease-out);
}

.tf-btn--secondary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow: var(--tf-glass-inset);
	pointer-events: none;
	transition: opacity var(--tf-duration-fast) var(--tf-ease-out);
}

/* Must beat `.tf-btn--secondary::before/::after` (same specificity otherwise → double glass). */
.tf-btn--secondary.tf-glass--glass-shader::before,
.tf-btn--secondary.tf-glass--glass-shader::after {
	content: none;
	background: none;
	box-shadow: none;
	-webkit-mask: none;
	mask: none;
	padding: 0;
}

.tf-btn__glow {
	position: absolute;
	top: calc(50% + 8px);
	left: calc(50% - 30.5px);
	z-index: 0;
	display: flex;
	width: 604.536px;
	height: 480.088px;
	translate: -50% -50%;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0.4;
}

.tf-btn__glow-rotate {
	position: relative;
	flex: none;
	width: 227px;
	height: 567px;
	rotate: -60deg;
}

.tf-btn__glow-ellipse {
	position: absolute;
	inset: -20.25% -50.57%;
	border-radius: 50%;
	background: var(--tf-btn-secondary-glow);
	filter: blur(57.4px);
}

.tf-btn--secondary .tf-btn__label,
.tf-btn--secondary .tf-btn__icon {
	position: relative;
	z-index: 3;
}

.tf-btn__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	overflow: hidden;
}

.tf-btn__icon img,
.tf-btn__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.tf-btn--secondary:hover:not(:disabled) {
	--tf-btn-secondary-bg: var(--tf-btn-secondary-fill-hover);
}

.tf-btn--secondary:active:not(:disabled) {
	--tf-btn-secondary-bg: var(--tf-btn-secondary-fill-pressed);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.tf-btn--secondary:active:not(:disabled)::before,
.tf-btn--secondary:active:not(:disabled)::after {
	opacity: 0;
}

/* Pressed — hide WebGL rim too (matches Figma solid press) */
.tf-btn--secondary:active:not(:disabled) > .tf-glass-surface {
	opacity: 0;
}

.tf-btn--secondary:disabled,
.tf-btn--secondary.is-disabled {
	cursor: not-allowed;
	opacity: 0.45;
	pointer-events: none;
}

.tf-btn--secondary:focus-visible {
	outline: 2px solid rgba(93, 215, 242, 0.55);
	outline-offset: 2px;
}

/* Selection chips — Portal SelectionChip (One/Two Step, currency) */
.tf-selection-chip {
	position: relative;
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 0;
	border-radius: var(--tf-chip-radius);
	background: var(--tf-chip-bg-default);
	color: var(--tf-grey);
	font-family: var(--tf-font);
	cursor: pointer;
	transition:
		color 200ms ease,
		background 200ms ease,
		border-color 200ms ease;
}

.tf-selection-chip:disabled {
	cursor: default;
	opacity: 0.45;
}

.tf-selection-chip__rim {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	opacity: 1;
	transition: opacity 200ms ease;
}

.tf-selection-chip__rim--hidden,
.tf-selection-chip--active .tf-selection-chip__rim {
	opacity: 0;
}

.tf-selection-chip--compact {
	height: var(--tf-chip-height);
	padding: 8px 16px;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.448px;
}

.tf-selection-chip--width-type {
	width: var(--tf-chip-width-type);
	flex-shrink: 0;
	padding: 8px 24px;
}

.tf-selection-chip--width-currency {
	width: var(--tf-chip-width-currency);
	flex-shrink: 0;
}

.tf-selection-chip--width-rules {
	width: var(--tf-chip-width-rules);
	flex-shrink: 0;
}

.tf-selection-chip__label {
	position: relative;
	z-index: 1;
	white-space: nowrap;
}

.tf-selection-chip--active.tf-selection-chip--compact {
	isolation: isolate;
	overflow: hidden;
	border: 1px solid transparent;
	background:
		var(--tf-chip-bg-active) padding-box,
		var(--tf-chip-border-gradient-active) border-box;
	background-clip: padding-box, border-box;
	color: var(--tf-white);
}

.tf-selection-chip--active .tf-selection-chip__label {
	color: var(--tf-white);
	font-weight: 500;
}

.tf-selection-chip__glow-wrap {
	position: absolute;
	top: -31px;
	left: 53.75px;
	z-index: 0;
	display: none;
	width: 96.725px;
	height: 92.179px;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.tf-selection-chip--active .tf-selection-chip__glow-wrap {
	display: flex;
}

.tf-selection-chip--width-type .tf-selection-chip__glow-wrap {
	left: 43.75px;
}

.tf-selection-chip--width-currency .tf-selection-chip__glow-wrap {
	left: 50%;
	transform: translateX(-50%);
}

.tf-selection-chip__glow-rotate {
	flex: none;
	transform: rotate(-60deg) scaleY(-1);
}

.tf-selection-chip__glow-inner {
	position: relative;
	width: 62.935px;
	height: 75.352px;
}

.tf-selection-chip__glow-bleed {
	position: absolute;
	inset: -104.97% -125.69%;
}

.tf-selection-chip__glow-bleed img,
.tf-selection-chip__glow-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.tf-selection-chip:focus-visible {
	outline: 2px solid rgba(93, 215, 242, 0.55);
	outline-offset: 2px;
}

/* Header CTA — secondary size shell (width from layout) */
.tf-btn--header {
	width: 173px;
	max-width: 100%;
}

.tf-btn--primary:hover:not(:disabled) {
	--tf-btn-fill: var(--tf-gradient-cta-hover);
}

.tf-btn--primary:active:not(:disabled) {
	--tf-btn-fill: var(--tf-gradient-cta-pressed);
}

.tf-btn--primary:disabled,
.tf-btn--primary.is-disabled {
	cursor: not-allowed;
	opacity: 0.45;
	box-shadow: none;
	pointer-events: none;
}

.tf-btn--primary:focus-visible {
	outline: 2px solid rgba(93, 215, 242, 0.55);
	outline-offset: 2px;
}

/* Header — fixed overlay (out of flow) */

.tf-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding: 32px 24px 0;
	background: transparent;
	pointer-events: none;
}

.tf-header__shell {
	position: relative;
	width: 100%;
	max-width: var(--tf-container);
	pointer-events: auto;
}

.tf-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	height: 64px;
	padding: 0 12px 0 24px;
	border-radius: 16px;
	box-sizing: border-box;
	/* Allow Support dropdown to escape glass overflow:hidden */
	overflow: visible;
	/* Keep submenu backdrop-filter able to sample the page behind */
	isolation: auto;
}

.tf-header__logo {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.tf-header__logo img {
	display: block;
	width: 185px;
	height: 22px;
	object-fit: contain;
}

.tf-header__nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

.tf-header__menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp(12px, 2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-header__item {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 24px;
	list-style: none;
}

.tf-header__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tf-white);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -0.448px;
	text-transform: capitalize;
	white-space: nowrap;
}

.tf-header__link:hover {
	opacity: 0.88;
}

.tf-header__chevron {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.tf-header__item.is-open > .tf-header__link .tf-header__chevron {
	transform: rotate(180deg);
}

.tf-header__item.is-open > .tf-header__link .tf-header__link-label {
	background: var(--gradient-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.tf-header__item.is-open > .tf-header__link:hover {
	opacity: 1;
}

.tf-header__submenu.tf-glass {
	--tf-glass-from: var(--tf-header-submenu-from);
	--tf-glass-to: var(--tf-header-submenu-to);
	--tf-glass-inset: var(--tf-header-submenu-inset);
	--tf-glass-blur: var(--tf-header-submenu-blur);
	position: absolute;
	top: calc(100% + 20px);
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 236px;
	margin: 0;
	padding: 16px;
	list-style: none;
	border-radius: 16px;
	isolation: auto;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		var(--tf-header-submenu-from) 0%,
		var(--tf-header-submenu-to) 100%
	);
	box-shadow: var(--tf-header-submenu-inset);
	backdrop-filter: blur(var(--tf-header-submenu-blur));
	-webkit-backdrop-filter: blur(var(--tf-header-submenu-blur));
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%);
	z-index: 20;
}

/* Ambient blue/cyan glow clipped inside the panel */
.tf-header__submenu > .tf-header__submenu-glow {
	position: absolute;
	left: -250px;
	top: -172px;
	z-index: 0;
	display: block;
	width: 373px;
	height: 941px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 50%;
	background: var(--tf-header-submenu-glow-fill);
	opacity: 0.4;
	filter: blur(115px);
	pointer-events: none;
}

.tf-header__submenu > .tf-header__item {
	z-index: 3;
}

/* Portaled to .tf-header so blur is not nested under the bar's backdrop-filter */
.tf-header__submenu.tf-header__submenu--portal {
	position: fixed;
	right: auto;
	bottom: auto;
	transform: none;
	z-index: 120;
}

.tf-header__submenu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.tf-header__submenu .tf-header__item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: auto;
}

.tf-header__submenu .tf-header__item:not(:last-child) {
	position: relative;
}

.tf-header__submenu .tf-header__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 1px;
	background: var(--tf-header-submenu-divider);
	pointer-events: none;
}

.tf-header__submenu .tf-header__link {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.504px;
	text-transform: none;
}

/* Active language / Support page — same text gradient as open parent select */
.tf-header__submenu .tf-header__item.current-menu-item > .tf-header__link .tf-header__link-label,
.tf-header__submenu .tf-header__item[aria-selected="true"] > .tf-header__link .tf-header__link-label,
.tf-header__submenu .tf-header__link[aria-current="true"] .tf-header__link-label {
	background: var(--gradient-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.tf-header__submenu .tf-header__item.current-menu-item > .tf-header__link:hover,
.tf-header__submenu .tf-header__item[aria-selected="true"] > .tf-header__link:hover,
.tf-header__submenu .tf-header__link[aria-current="true"]:hover {
	opacity: 1;
}

.tf-header__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: clamp(12px, 1.5vw, 24px);
	height: 40px;
	margin-left: auto;
}

.tf-header__lang {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 24px;
}

.tf-header__lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tf-white);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -0.448px;
	text-transform: capitalize;
	cursor: pointer;
}

.tf-header__lang-toggle--static {
	cursor: default;
}

.tf-header__lang.is-open .tf-header__chevron {
	transform: rotate(180deg);
}

.tf-header__lang.is-open .tf-header__lang-code {
	background: var(--gradient-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Language panel: same glass submenu as Support; narrower for EN/FR/DE codes */
.tf-header__lang-submenu.tf-header__submenu {
	width: 120px;
	gap: 12px;
}

.tf-header__lang-submenu .tf-header__link {
	justify-content: flex-start;
	text-transform: uppercase;
	letter-spacing: -0.448px;
}

.tf-header__lang-submenu .tf-header__item:not(:last-child)::after {
	bottom: -6px;
}

.tf-header__cta {
	position: relative;
}

/* Compact desktop header before burger kicks in */
@media (max-width: 1100px) and (min-width: 951px) {
	.tf-header {
		padding: 24px 16px 0;
	}

	.tf-header__bar {
		gap: 16px;
		padding: 0 12px 0 16px;
	}

	.tf-header__logo img {
		width: 160px;
	}

	.tf-header__menu {
		gap: 12px;
	}

	.tf-header__link {
		font-size: 15px;
		letter-spacing: -0.4px;
	}

	.tf-header__actions {
		gap: 12px;
	}

	.tf-btn--header {
		width: auto;
		min-width: 140px;
		padding-inline: 20px;
	}
}

.tf-header__mobile-tools {
	display: none;
}

.tf-header__icon-btn {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--tf-radius-sm);
	background: transparent;
	color: var(--tf-white);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.tf-header__icon-btn:hover {
	background: color-mix(in srgb, var(--tf-blue) 10%, transparent);
}

.tf-header__icon-btn img {
	display: block;
	width: 24px;
	height: 24px;
}

/* Closed burger — CSS glass only (0.2 fill + blue glow); small control, no WebGL. */
.tf-header__menu-toggle {
	--tf-glass-from: rgba(3, 12, 53, 0.2);
	--tf-glass-to: rgba(0, 0, 0, 0.2);
	--tf-glass-fill: var(--tf-btn-secondary-fill);
	--tf-glass-blur: var(--tf-btn-secondary-blur);
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-left: 8px;
	padding: 0;
	border: 0;
	border-radius: var(--tf-radius-sm);
	overflow: hidden;
	cursor: pointer;
	color: var(--tf-white);
	isolation: auto;
	background: var(--tf-btn-secondary-fill);
	backdrop-filter: blur(var(--tf-btn-secondary-blur));
	-webkit-backdrop-filter: blur(var(--tf-btn-secondary-blur));
	transition:
		background var(--tf-duration-normal) var(--tf-ease-out),
		backdrop-filter var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-header__menu-toggle-glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 62px;
	height: 156px;
	border-radius: 50%;
	background: var(--tf-header-drawer-glow);
	opacity: 0.4;
	filter: blur(40px);
	pointer-events: none;
	translate: -50% -50%;
	rotate: -60deg;
	transition: opacity var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-header__menu-toggle-secondary-glow {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-header__menu-toggle-icon {
	position: absolute;
	z-index: 1;
	display: block;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	opacity: 1;
	transition:
		opacity var(--tf-duration-normal) var(--tf-ease-out),
		transform var(--tf-duration-normal) var(--tf-ease-out);
}

.tf-header__menu-toggle-icon--burger {
	width: 18px;
	height: 12px;
}

.tf-header__menu-toggle-icon--close {
	width: 24px;
	height: 24px;
	opacity: 0;
	transform: rotate(-45deg) scale(0.85);
	pointer-events: none;
}

/* Open menu — swap closed blue glow for secondary CTA glow stack. */
.tf-header.is-menu-open .tf-header__menu-toggle {
	--tf-glass-from: rgba(3, 12, 53, 0.2);
	--tf-glass-to: rgba(0, 0, 0, 0.2);
	--tf-glass-fill: var(--tf-btn-secondary-fill);
	--tf-glass-blur: var(--tf-btn-secondary-blur);
	background: var(--tf-btn-secondary-fill);
	backdrop-filter: blur(var(--tf-btn-secondary-blur));
	-webkit-backdrop-filter: blur(var(--tf-btn-secondary-blur));
}

.tf-header.is-menu-open .tf-header__menu-toggle-glow {
	opacity: 0;
}

.tf-header.is-menu-open .tf-header__menu-toggle-secondary-glow {
	opacity: 1;
}

.tf-header.is-menu-open .tf-header__menu-toggle-icon--burger {
	opacity: 0;
	transform: rotate(45deg) scale(0.85);
	pointer-events: none;
}

.tf-header.is-menu-open .tf-header__menu-toggle-icon--close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.tf-header__menu-toggle,
	.tf-header__menu-toggle-glow,
	.tf-header__menu-toggle-secondary-glow,
	.tf-header__menu-toggle-icon {
		transition: none;
	}

	.tf-header__menu-toggle-icon--burger,
	.tf-header__menu-toggle-icon--close,
	.tf-header.is-menu-open .tf-header__menu-toggle-icon--burger,
	.tf-header.is-menu-open .tf-header__menu-toggle-icon--close {
		transform: none;
	}
}

.tf-header__drawer {
	--tf-glass-from: var(--tf-header-drawer-from);
	--tf-glass-to: var(--tf-header-drawer-to);
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	width: 100%;
	z-index: 110;
	flex-direction: column;
	max-height: min(742px, calc(100vh - 120px));
	padding: 16px 16px 30px;
	border-radius: var(--tf-radius-lg);
	/* Clip glow; scroll only the content body (glow must not create overflow). */
	overflow: hidden;
	pointer-events: auto;
	isolation: auto;
	box-sizing: border-box;
}

.tf-header__drawer[hidden] {
	display: none !important;
}

.tf-header.is-menu-open .tf-header__drawer:not([hidden]) {
	display: flex;
}

.tf-header__drawer-glow {
	position: absolute;
	left: -250px;
	top: -108px;
	z-index: 0;
	width: 373px;
	height: 941px;
	border-radius: 50%;
	background: var(--tf-header-drawer-glow);
	opacity: 0.4;
	filter: blur(115px);
	pointer-events: none;
}

.tf-header__drawer-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.tf-header__drawer > *:not(.tf-header__drawer-glow) {
	position: relative;
	z-index: 1;
}

.tf-header__drawer-account {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 48px;
	padding: 0 16px 0 24px;
	border-radius: var(--tf-radius-sm);
	overflow: hidden;
	text-decoration: none;
	color: var(--tf-white);
	box-sizing: border-box;
}

.tf-header__drawer-account-glow {
	position: absolute;
	left: -167px;
	top: -52px;
	width: 227px;
	height: 567px;
	border-radius: 50%;
	background: var(--tf-header-drawer-glow);
	opacity: 0.35;
	filter: blur(115px);
	pointer-events: none;
}

.tf-header__drawer-account-label {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -0.448px;
	text-transform: capitalize;
}

.tf-header__drawer-account-icon {
	position: relative;
	z-index: 1;
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.tf-header__drawer-nav {
	margin-top: 16px;
}

.tf-header__drawer-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	height: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-header__drawer-menu > .tf-header__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: auto;
	list-style: none;
}

.tf-header__drawer-menu > .tf-header__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 0;
	height: 1px;
	background: var(--tf-header-drawer-divider);
	pointer-events: none;
}

.tf-header__drawer-menu > .tf-header__item > .tf-header__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	box-sizing: border-box;
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.504px;
	text-transform: none;
	white-space: normal;
}

/* Nested Support list stays in the shared portaled submenu — hide in-flow copy */
.tf-header__drawer-menu .tf-header__submenu:not(.tf-header__submenu--portal) {
	display: none;
}

.tf-header__drawer-lang {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	padding: 16px 16px 0;
}

.tf-header__drawer-lang::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--tf-header-drawer-divider);
	pointer-events: none;
}

.tf-header__drawer-lang-label {
	color: var(--tf-grey);
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.504px;
}

.tf-header__drawer-lang-value {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tf-header__drawer-lang-name {
	color: var(--tf-white);
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.504px;
}

.tf-header__drawer-lang-change {
	color: var(--tf-grey);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.448px;
	text-decoration: underline;
}

.tf-header__drawer-lang-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-header__drawer-lang-sep {
	padding: 0 6px;
	color: var(--tf-grey);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.448px;
	user-select: none;
}

.tf-header__drawer-lang-list a {
	color: var(--tf-grey);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.448px;
	text-decoration: none;
}

.tf-header__drawer-lang-list a:hover {
	color: var(--tf-white);
}

.tf-header__drawer-lang-list a[aria-current="true"] {
	font-weight: 400;
	background: var(--gradient-1);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.tf-header__drawer-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 32px);
	max-width: 294px;
	height: 56px;
	margin: 24px auto 0;
	box-sizing: border-box;
}

@media (max-width: 950px) {
	.tf-header {
		padding: 24px 16px 0;
	}

	.tf-header__shell {
		max-width: none;
	}

	.tf-header__bar {
		position: relative;
		gap: 0;
		height: 64px;
		padding: 0 8px 0 16px;
	}

	.tf-header__logo {
		position: relative;
		transform: none;
	}

	.tf-header__logo img {
		width: 174px;
		height: auto;
		max-height: 22px;
	}

	.tf-header__nav,
	.tf-header__actions {
		display: none;
	}

	.tf-header__mobile-tools {
		display: flex;
		flex-shrink: 0;
		align-items: center;
		gap: 0;
		height: 48px;
		margin-left: auto;
	}

	.tf-header__drawer:not([hidden]) {
		animation: tf-header-drawer-in var(--tf-duration-normal) var(--tf-ease-out);
	}

	body.tf-header-menu-open {
		overflow: hidden;
	}
}

@keyframes tf-header-drawer-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-header__drawer:not([hidden]) {
		animation: none;
	}
}

@media (min-width: 951px) {
	.tf-header__drawer,
	.tf-header__mobile-tools {
		display: none !important;
	}
}

/*
 * Intercom Messenger defaults to a near-max z-index and covers header
 * dropdowns (z-index 200). Keep the frame above page content, below chrome UI.
 */
.intercom-namespace,
.intercom-lightweight-app,
.intercom-messenger-frame,
.intercom-notifications-frame,
.intercom-borderless-frame,
iframe[name="intercom-messenger-frame"],
iframe[name="intercom-notifications-frame"] {
	z-index: 150 !important;
}

/* Footer — shared chrome
 * Flow layout (flex) — desktop spacing from Figma, ready for future breakpoints.
 */

.tf-footer {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 383px;
	overflow: hidden;
	background-color: var(--tf-bg);
}

.tf-footer__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* Baked footer plate (top glow + tile grid). Intrinsic 1440×383. */
.tf-footer__backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.tf-footer__backdrop img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.tf-footer__rule {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.02) 0%,
		rgba(255, 255, 255, 0.1) 50.96%,
		rgba(255, 255, 255, 0.02) 100%
	);
	z-index: 2;
}

.tf-footer__rule--top {
	top: 0;
}

.tf-footer__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--tf-container);
	margin: 0 auto;
	padding: 88px 0 32px;
}

.tf-footer__main {
	display: grid;
	grid-template-columns: minmax(200px, 261px) minmax(0, 1fr);
	column-gap: 64px;
	align-items: start;
	width: 100%;
	margin-bottom: 20px;
}

.tf-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 261px;
	max-width: 100%;
}

.tf-footer__logo {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.tf-footer__logo img {
	display: block;
	width: 261px;
	height: 31px;
	object-fit: contain;
}

.tf-footer__tagline {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
	letter-spacing: -0.448px;
	color: var(--tf-grey);
	white-space: nowrap;
}

.tf-footer__tagline-break {
	display: none;
}

/* FR/DE taglines are longer — keep the second sentence on its own line. */
html[lang="fr"] .tf-footer__tagline,
html[lang="fr-FR"] .tf-footer__tagline,
html[lang="de"] .tf-footer__tagline,
html[lang="de-DE"] .tf-footer__tagline {
	white-space: normal;
}

html[lang="fr"] .tf-footer__tagline-break,
html[lang="fr-FR"] .tf-footer__tagline-break,
html[lang="de"] .tf-footer__tagline-break,
html[lang="de-DE"] .tf-footer__tagline-break {
	display: block;
}

.tf-footer__columns {
	/* Equal tracks so FR/DE long labels wrap inside the cell instead of kicking a column down. */
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 40px;
	align-items: start;
	min-width: 0;
	width: 100%;
}

/* Flatten nav/ul so WP menu cols + Legal + Contact share one grid. */
.tf-footer__nav,
.tf-footer__menu {
	display: contents;
}

.tf-footer__social-label {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: -0.448px;
	text-transform: capitalize;
	color: var(--tf-grey);
}

.tf-footer__social-list {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--tf-radius-sm);
	text-decoration: none;
}

.tf-footer__social-link:hover {
	opacity: 0.88;
}

.tf-footer__social-link img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.tf-footer__social-link--ico img {
	width: 24px;
	height: 24px;
}

.tf-footer__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	max-width: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-footer__heading {
	margin: 0;
	color: var(--tf-white);
	font-size: 18px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -0.504px;
	text-transform: capitalize;
	text-decoration: none;
	overflow-wrap: break-word;
}

a.tf-footer__heading:hover {
	opacity: 0.88;
}

.tf-footer__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-footer__link {
	color: var(--tf-grey);
	font-size: 18px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: -0.504px;
	text-transform: capitalize;
	text-decoration: none;
	overflow-wrap: break-word;
}

.tf-footer__link:hover {
	opacity: 0.88;
}

.tf-footer__muted {
	color: var(--tf-grey);
	font-size: 18px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: -0.504px;
	overflow-wrap: break-word;
}

.tf-footer__company,
.tf-footer__risk {
	width: 100%;
	padding-top: 20px;
	position: relative;
}

.tf-footer__company {
	margin-top: 0;
}

.tf-footer__risk {
	margin-top: 20px;
}

.tf-footer__company::before,
.tf-footer__risk::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.02) 0%,
		rgba(255, 255, 255, 0.1) 50.96%,
		rgba(255, 255, 255, 0.02) 100%
	);
	pointer-events: none;
}

.tf-footer__company,
.tf-footer__company p {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 22px;
	letter-spacing: -0.28px;
	color: var(--tf-grey);
}

.tf-footer__company a {
	color: var(--tf-white);
	text-decoration: underline;
	text-underline-position: from-font;
}

.tf-footer__company a:hover {
	opacity: 0.88;
}

.tf-footer__risk-text {
	margin: 0;
	font-size: 12px;
	font-weight: 300;
	line-height: 18px;
	letter-spacing: -0.24px;
	color: var(--tf-grey);
}

.tf-footer__risk-text strong {
	font-weight: 600;
	color: var(--tf-white);
	text-transform: uppercase;
}

/* Back to top — absolute, offset from footer edges */
.tf-footer__top {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 88px;
	right: 56px;
	z-index: 2;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	text-decoration: none;
}

.tf-footer__top:hover {
	opacity: 0.88;
}

.tf-footer__top img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

/* Mid rule sits on the top edge of the bottom block (full-bleed). */
.tf-footer__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 16px 40px;
	width: 100%;
	margin-top: 20px;
	padding-top: 20px;
	position: relative;
}

.tf-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.02) 0%,
		rgba(255, 255, 255, 0.1) 50.96%,
		rgba(255, 255, 255, 0.02) 100%
	);
	pointer-events: none;
}

.tf-footer__copy {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 22px;
	letter-spacing: -0.28px;
	color: var(--tf-grey);
}

/* Narrow desktop / tablet — before the mobile stack */
@media (max-width: 1200px) {
	.tf-footer__inner {
		padding: 72px 32px 32px;
	}

	.tf-footer__main {
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
		column-gap: 40px;
	}

	.tf-footer__brand {
		width: 100%;
		max-width: 200px;
	}

	.tf-footer__logo img {
		width: 100%;
		max-width: 200px;
		height: auto;
	}

	/* Brand column is ~200px — stack socials 2×2 + tagline break until the 950px layout. */
	.tf-footer__tagline {
		white-space: normal;
	}

	.tf-footer__tagline-break {
		display: block;
	}

	.tf-footer__social-list {
		display: grid;
		grid-template-columns: repeat(2, 48px);
		gap: 12px;
		align-items: center;
	}

	.tf-footer__columns {
		column-gap: 32px;
		row-gap: 40px;
	}

	.tf-footer__top {
		top: 72px;
		right: 32px;
		width: 56px;
		height: 56px;
	}

	.tf-footer__top img {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 950px) {
	.tf-footer__main {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 40px;
	}

	.tf-footer__brand {
		max-width: 261px;
	}

	.tf-footer__logo img {
		width: 220px;
		max-width: 100%;
	}

	.tf-footer__tagline {
		white-space: nowrap;
	}

	.tf-footer__tagline-break {
		display: none;
	}

	html[lang="fr"] .tf-footer__tagline,
	html[lang="fr-FR"] .tf-footer__tagline,
	html[lang="de"] .tf-footer__tagline,
	html[lang="de-DE"] .tf-footer__tagline {
		white-space: normal;
	}

	html[lang="fr"] .tf-footer__tagline-break,
	html[lang="fr-FR"] .tf-footer__tagline-break,
	html[lang="de"] .tf-footer__tagline-break,
	html[lang="de-DE"] .tf-footer__tagline-break {
		display: block;
	}

	.tf-footer__social-list {
		display: flex;
		flex-wrap: nowrap;
		gap: 12px;
	}

	.tf-footer__columns {
		column-gap: 24px;
		row-gap: 28px;
	}

	.tf-footer__top {
		right: 24px;
		width: 48px;
		height: 48px;
	}

	.tf-footer__top img {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 768px) {
	.tf-footer {
		min-height: 0;
	}

	.tf-footer__inner {
		padding: 72px 32px 32px;
	}

	.tf-footer__main {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 40px;
	}

	.tf-footer__brand {
		width: 260px;
		max-width: 100%;
	}

	.tf-footer__logo {
		width: 100%;
	}

	.tf-footer__logo img {
		width: 260px;
		max-width: 100%;
		height: auto;
	}

	.tf-footer__columns {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 40px;
		width: 100%;
	}

	.tf-footer__tagline {
		white-space: normal;
	}

	.tf-footer__top {
		display: none;
	}

	.tf-footer__company,
	.tf-footer__risk,
	.tf-footer__bottom {
		text-align: left;
	}

	.tf-footer__bottom {
		margin-top: 32px;
		padding-top: 32px;
	}
}
