/*
Theme Name: FFM
Theme URI: https://firstfinancialmarkets.com/
Author: Artiuo Studio
Author URI: https://artiuostudio.com/
Description: First Financial Markets — dark theme, brand gradients, Arabic-friendly type. Optional Elementor support when the plugin is active.
Version: 1.6.67
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ffm
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, full-width-template, dark

FFM — First Financial Markets · Artiuo Studio

   Edit map (classes are short words, combined on one element):
   · Buttons: ffm-btn + primary | ghost | secondary; animated “Start Now”: wrap ffm-cta-ring > ffm-btn primary header
   · Sections: ffm-section + tight | narrow | band | cta
   · Hero: ffm-hero + has-bg
   · Grids: ffm-grid + two | three
   · Cards: ffm-card + person | highlight | feature (inside .ffm-features)
   · Instruments: ffm-instruments + ffm-instrument-card--{slug}; art: assets/images/instruments/{slug}.webp|jpg|png
   · Media credibility: ffm-media-cred + has-collage; collage: media-collage-bg or media-credibility-bg or media-credibility/collage-dummy.svg; logos: media-logos/channel-01…05
   · Home upcoming: ffm-home-upcoming (webinars/events from plugin CPTs + ffm_starts_at)
*/

/* -------------------------------------------------------------------------
   1. Tokens & base
   Brand (firstfinancialmarkets.com)
   Primary gradient: #004fa0 → #00c0fa
   Secondary (accent, sparingly): #f65b4a → #820727
   ------------------------------------------------------------------------- */

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

html {
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ffm-font-body);
	font-size: 1rem;
	color: var(--ffm-text);
	background-color: var(--ffm-bg);
	background-image:
		radial-gradient(ellipse 900px 520px at 15% 0%, rgba(0, 79, 160, 0.22), transparent 55%),
		radial-gradient(ellipse 800px 480px at 85% 15%, rgba(0, 192, 250, 0.08), transparent 50%),
		radial-gradient(ellipse 700px 500px at 70% 90%, rgba(246, 91, 74, 0.06), transparent 55%);
	/* scroll — not fixed — avoids constant repaints on scroll (major perf win on laptops) */
	background-attachment: scroll;
}

html.ffm-no-scroll,
body.ffm-no-scroll {
	overflow: hidden;
}

/* Prevent header/layout shift when scrollbar disappears on drawer open (desktop only) */
@media (min-width: 783px) {
	body.ffm-drawer-open {
		padding-right: var(--ffm-scrollbar-w, 0px);
	}
}

/* Avoid header height changes while drawer is open (wrapping can look like extra top padding) */
body.ffm-drawer-open .ffm-header-end {
	flex-wrap: nowrap;
}

body.ffm-drawer-open .ffm-header-inner {
	align-items: center;
}

:root {
	--ffm-bg: #000000;
	--ffm-bg-elevated: #0a0e14;
	--ffm-surface: rgba(255, 255, 255, 0.04);
	--ffm-text: rgba(255, 255, 255, 0.94);
	--ffm-text-soft: rgba(255, 255, 255, 0.82);
	--ffm-muted: rgba(255, 255, 255, 0.55);
	--ffm-fine: rgba(255, 255, 255, 0.42);
	--ffm-border: rgba(255, 255, 255, 0.1);
	--ffm-border-strong: rgba(0, 192, 250, 0.28);

	--ffm-primary-a: #004fa0;
	--ffm-primary-b: #00c0fa;
	--ffm-grad-primary: linear-gradient(135deg, var(--ffm-primary-a), var(--ffm-primary-b));
	--ffm-glow-primary: 0 0 24px rgba(0, 192, 250, 0.18);

	--ffm-secondary-a: #f65b4a;
	--ffm-secondary-b: #820727;
	--ffm-grad-secondary: linear-gradient(135deg, var(--ffm-secondary-a), var(--ffm-secondary-b));
	--ffm-glow-secondary: 0 0 22px rgba(246, 91, 74, 0.2);

	--ffm-link: #5ddbff;
	--ffm-link-hover: #9aebff;

	--ffm-maxw: 72rem;
	--ffm-space: 1.25rem;
	--ffm-radius: 30px;
	--ffm-radius-pill: 999px;

	--ffm-font-body: "Noto Sans Arabic", "Noto Sans", system-ui, -apple-system, sans-serif;
	--ffm-font-display: "Outfit", "Noto Sans Arabic", system-ui, sans-serif;
}

a {
	color: var(--ffm-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}

a:hover,
a:focus {
	color: var(--ffm-link-hover);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* -------------------------------------------------------------------------
   2. Layout — wrap, main, content
   ------------------------------------------------------------------------- */

.ffm-wrap {
	max-width: var(--ffm-maxw);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ffm-space);
	padding-right: var(--ffm-space);
}

/* -------------------------------------------------------------------------
   3. Header — sticky bar, nav, social, CTA
   ------------------------------------------------------------------------- */

.ffm-header-wrap {
	position: sticky;
	z-index: 1000;
}

.ffm-header-wrap .site-header {
	transition:
		background 0.4s ease,
		backdrop-filter 0.4s ease,
		-webkit-backdrop-filter 0.4s ease,
		box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease;
}

.ffm-header-wrap.is-scrolled .site-header {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(22px) saturate(165%);
	-webkit-backdrop-filter: blur(22px) saturate(165%);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	border-bottom-color: rgba(0, 192, 250, 0.14);
}

@media (prefers-reduced-motion: reduce) {
	.ffm-header-wrap .site-header {
		transition: none;
	}
}

.site-header {
	background: rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	border-bottom: 1px solid var(--ffm-border);
}

.ffm-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand nav end";
	align-items: center;
	gap: 1rem 1.25rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.site-branding {
	grid-area: brand;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.main-navigation {
	grid-area: nav;
	justify-self: center;
	min-width: 0;
}

.ffm-header-end {
	grid-area: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex-wrap: wrap;
	min-width: 0;
}

/* Animated “Start Now” — rotating conic border + shifting fill (no transform on the control) */
@property --ffm-cta-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* Animated primary CTA — header + hero “Start Now” */
.ffm-cta-ring {
	position: relative;
	display: inline-flex;
	padding: 1px;
	border-radius: var(--ffm-radius-pill);
	isolation: isolate;
}

.ffm-cta-ring::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	z-index: 0;
	background: conic-gradient(
		from var(--ffm-cta-angle),
		var(--ffm-primary-b),
		var(--ffm-primary-a),
		var(--ffm-link),
		var(--ffm-primary-b),
		var(--ffm-primary-a),
		var(--ffm-primary-b)
	);
	animation: ffm-cta-ring 5.5s linear infinite;
}

@keyframes ffm-cta-ring {
	to {
		--ffm-cta-angle: 360deg;
	}
}

@keyframes ffm-cta-fill {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffm-cta-ring::before {
		animation: none;
		background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
	}
}

/* Header row social icons */
.ffm-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	color: var(--ffm-text-soft);
	text-decoration: none;
	border-radius: var(--ffm-radius-pill);
	transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ffm-social a:hover,
.ffm-social a:focus {
	color: var(--ffm-link);
	background: rgba(0, 192, 250, 0.1);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.18);
}

.ffm-social svg {
	display: block;
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
}

@media (max-width: 782px) {
	.ffm-header-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand end"
			"nav nav";
	}

	.main-navigation {
		justify-self: stretch;
		width: 100%;
	}

	.ffm-header-end {
		justify-content: flex-end;
		max-width: 100%;
	}
}

.site-branding__lockup {
	display: flex;
	align-items: center;
	gap: 0.5rem 0.65rem;
	flex-wrap: wrap;
	min-width: 0;
}

.site-branding .custom-logo-link {
	display: inline-block;
	flex-shrink: 0;
	line-height: 0;
}

.site-branding .custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
	min-width: 2rem;
	min-height: 2rem;
	object-fit: contain;
	object-position: left center;
}

/* Wide horizontal logo (e.g. FFM wideW.svg) */
.site-branding .custom-logo.ffm-wide-logo {
	max-height: 48px;
	max-width: min(420px, 88vw);
	width: auto;
	min-width: 120px;
	min-height: 28px;
}

@media (min-width: 640px) {
	.site-branding .custom-logo.ffm-wide-logo {
		max-height: 52px;
		max-width: min(440px, 50vw);
	}
}

.site-title {
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.site-title a {
	text-decoration: none;
	color: var(--ffm-text);
}

.site-title a:hover,
.site-title a:focus {
	background: var(--ffm-grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	color: var(--ffm-muted);
}

/* Primary menu */

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	align-items: center;
}

.main-navigation a {
	display: inline-block;
	padding: 0.45rem 1rem;
	text-decoration: none;
	color: var(--ffm-text-soft);
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: var(--ffm-radius-pill);
	transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--ffm-text);
	background: rgba(0, 192, 250, 0.12);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.2);
}

/* Current page / section (WP: .current-menu-item, .current-menu-ancestor, .current_page_item) */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a {
	color: var(--ffm-text);
	background: rgba(0, 192, 250, 0.18);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.35);
	font-weight: 700;
}

.main-navigation .current-menu-item > a:hover,
.main-navigation .current-menu-item > a:focus,
.main-navigation .current-menu-ancestor > a:hover,
.main-navigation .current-menu-ancestor > a:focus,
.main-navigation .current_page_item > a:hover,
.main-navigation .current_page_item > a:focus {
	background: rgba(0, 192, 250, 0.22);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.42);
}

/* Shown only to admins when no menu is assigned to Primary */
.main-navigation .ffm-admin-hint a {
	outline: 1px dashed rgba(0, 192, 250, 0.45);
	color: var(--ffm-link);
}

.menu-toggle {
	display: none;
	font: inherit;
	cursor: pointer;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--ffm-border);
	border-radius: var(--ffm-radius-pill);
	background: var(--ffm-surface);
	color: var(--ffm-text);
}

.menu-toggle:hover {
	border-color: rgba(0, 192, 250, 0.35);
}

@media (max-width: 782px) {
	/* Make sure all header items share the same centerline on phones */
	.ffm-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 64px;
	}

	.site-branding,
	.site-branding__lockup,
	.ffm-header-end {
		align-items: center;
	}

	.site-branding__lockup {
		flex-wrap: nowrap;
	}

	.ffm-drawer-toggle {
		align-self: center;
		line-height: 1;
	}

	.site-branding .custom-logo-link {
		display: inline-flex;
		align-items: center;
	}

	/* Mobile uses off-canvas drawer instead of inline toggled menu */
	.main-navigation ul {
		display: none;
	}

	/* Hide header social on phones (shown in drawer bottom instead) */
	.ffm-header-end > .ffm-social {
		display: none;
	}

	/* Keep Start Now CTA visible in header on phones */

	.ffm-header-inner {
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
		gap: 0.75rem;
	}

	.site-branding .custom-logo {
		max-height: 40px;
	}

	/* Keep the header CTA on one line on small screens */
	.ffm-cta-ring .ffm-btn.primary.header {
		white-space: nowrap;
		flex: 0 0 auto;
	}

	/* Slightly tighter on very small widths */
	@media (max-width: 380px) {
		.ffm-cta-ring .ffm-btn.primary.header {
			padding: 0.45rem 0.9rem;
			font-size: 0.84rem;
		}
	}
}

/* -------------------------------------------------------------------------
   4. Main content — posts, pages, blocks
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Mobile drawer (off-canvas sidebar)
   ------------------------------------------------------------------------- */

.ffm-drawer-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ffm-text);
	cursor: pointer;
}

/* No hover effect requested (keeps mobile clean) */

.ffm-drawer-toggle__icon {
	display: grid;
	gap: 4px;
}

.ffm-drawer-toggle__icon span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	opacity: 0.9;
}

.ffm-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 1500;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.ffm-drawer {
	position: fixed;
	inset: 0;
	z-index: 1600;
	pointer-events: none;
	visibility: visible;
}

.ffm-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(86vw, 340px);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.05rem;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(22px) saturate(165%);
	-webkit-backdrop-filter: blur(22px) saturate(165%);
	border-right: 1px solid rgba(0, 192, 250, 0.18);
	box-shadow: 14px 0 50px rgba(0, 0, 0, 0.55);
	transform: translateX(-105%);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: auto;
}

/* Avoid cropping under the WP admin bar when logged in */
body.admin-bar .ffm-drawer__panel {
	padding-top: calc(1.05rem + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .ffm-drawer__panel {
		padding-top: calc(1.05rem + 46px);
	}
}

body.ffm-drawer-open .ffm-drawer {
	pointer-events: auto;
	visibility: visible;
}

body.ffm-drawer-open .ffm-drawer__panel {
	transform: translateX(0);
}

body.ffm-drawer-open .ffm-drawer-overlay {
	opacity: 1;
	pointer-events: auto;
}

.ffm-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ffm-drawer__brand {
	min-width: 0;
}

.ffm-drawer__brand .custom-logo {
	height: 34px;
	width: auto;
	max-width: 220px;
	min-width: 0;
	object-fit: contain;
	object-position: left center;
}

.ffm-drawer__brand .custom-logo.ffm-wide-logo {
	height: 34px;
	width: auto;
	max-width: 240px;
	min-height: 0;
}

.ffm-drawer__brand .site-branding__lockup {
	flex-wrap: nowrap;
}

.ffm-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--ffm-radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: var(--ffm-text);
	cursor: pointer;
	font-size: 1.55rem;
	line-height: 1;
}

.ffm-drawer__close:hover {
	border-color: rgba(0, 192, 250, 0.35);
}

.ffm-drawer__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0.25rem 0;
}

.ffm-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ffm-drawer__nav a {
	display: block;
	padding: 0.8rem 0.9rem;
	text-decoration: none;
	color: var(--ffm-text-soft);
	font-weight: 650;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.ffm-drawer__nav a:hover,
.ffm-drawer__nav a:focus {
	color: var(--ffm-text);
	border-color: rgba(0, 192, 250, 0.22);
	background: rgba(0, 192, 250, 0.1);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.16);
	outline: none;
}

.ffm-drawer__nav .current-menu-item > a,
.ffm-drawer__nav .current-menu-ancestor > a,
.ffm-drawer__nav .current_page_item > a {
	color: var(--ffm-text);
	border-color: rgba(0, 192, 250, 0.28);
	background: rgba(0, 192, 250, 0.14);
	box-shadow: 0 0 0 1px rgba(0, 192, 250, 0.2);
}

.ffm-drawer__bottom {
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 0.6rem;
}

.ffm-drawer__bottom .ffm-social {
	justify-content: flex-start;
}

.ffm-drawer__copyright {
	color: var(--ffm-muted);
	font-size: 0.82rem;
	letter-spacing: 0.01em;
}

@media (max-width: 782px) {
	.ffm-drawer-toggle {
		display: inline-flex;
	}

	/* Keep header compact */
	.ffm-header-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas: "brand end";
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffm-drawer__panel {
		transition: none;
	}
}

.site-main {
	padding: 2.25rem 0 3.5rem;
	min-height: 45vh;
}

.content-area {
	width: 100%;
}

/* Typography in content */

.entry-header {
	margin-bottom: 1.35rem;
}

.entry-title {
	margin: 0 0 0.4rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.55rem, 3.2vw, 2.15rem);
	line-height: 1.18;
	font-weight: 700;
}

.entry-title a {
	text-decoration: none;
	color: var(--ffm-text);
}

.entry-title a:hover,
.entry-title a:focus {
	background: var(--ffm-grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--ffm-muted);
}

.entry-content {
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ffm-text-soft);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--ffm-font-display);
	color: var(--ffm-text);
	font-weight: 700;
	line-height: 1.25;
}

.entry-content h2 {
	font-size: 1.45rem;
	margin-top: 2rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--ffm-border);
}

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid transparent;
	border-image: var(--ffm-grad-primary) 1;
	background: var(--ffm-surface);
	border-radius: 0 var(--ffm-radius) var(--ffm-radius) 0;
	color: var(--ffm-text-soft);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

/* Buttons & blocks (Gutenberg) */

.wp-block-button__link,
.entry-content .wp-block-file .wp-block-file__button {
	background: var(--ffm-grad-primary);
	color: #020617 !important;
	font-weight: 700;
	border: none;
	border-radius: var(--ffm-radius-pill);
	padding: 0.55rem 1.25rem;
	box-shadow: var(--ffm-glow-primary);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wp-block-button__link:hover,
.entry-content .wp-block-file .wp-block-file__button:hover {
	filter: brightness(1.08);
	box-shadow: 0 0 32px rgba(0, 192, 250, 0.35);
}

/* Secondary accent — use sparingly (warnings, negative stats, alerts) */
.ffm-accent-secondary,
.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ffm-text) !important;
	border: 1px solid rgba(246, 91, 74, 0.5);
	box-shadow: none;
}

.entry-content .is-style-outline .wp-block-button__link:hover {
	background: var(--ffm-grad-secondary);
	border-color: transparent;
	color: #fff !important;
	box-shadow: var(--ffm-glow-secondary);
}

/* Utility: gradient text */
.ffm-text-gradient {
	background: var(--ffm-grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ffm-text-gradient.secondary {
	background: var(--ffm-grad-secondary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Separator line (brand) */

.ffm-rule {
	height: 1px;
	border: 0;
	margin: 2rem 0;
	background: var(--ffm-grad-primary);
	opacity: 0.85;
}

/* -------------------------------------------------------------------------
   5. Footer
   ------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--ffm-border);
	background: rgba(0, 0, 0, 0.92);
	padding: 2.5rem 0 1.75rem;
	font-size: 0.875rem;
	color: var(--ffm-muted);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 2rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 782px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

.site-footer__logo-link {
	display: inline-block;
	margin-bottom: 0.65rem;
	line-height: 0;
}

.site-footer__logo {
	display: block;
	max-height: 40px;
	width: auto;
	height: auto;
}

.site-footer__name {
	display: block;
	font-family: var(--ffm-font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ffm-text);
}

.site-footer__tag {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: var(--ffm-muted);
	line-height: 1.4;
}

.site-footer__heading {
	margin: 0 0 0.65rem;
	font-family: var(--ffm-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ffm-text-soft);
}

.site-footer__contact p,
.site-footer__legal {
	margin: 0;
}

.site-footer__contact p + p {
	margin-top: 0.35rem;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links li + li {
	margin-top: 0.4rem;
}

.site-footer a {
	color: var(--ffm-muted);
	text-decoration: none;
	font-weight: 600;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--ffm-link);
}

.ffm-rule.footer {
	margin: 1.25rem 0;
	opacity: 0.55;
}

.site-footer__legal-copy {
	width: 100%;
	max-width: none;
	margin: 0 0 1.5rem;
}

.site-footer__legal-p {
	margin: 0 0 1.1rem;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--ffm-fine);
}

.site-footer__legal-p:last-child {
	margin-bottom: 0;
}

.site-footer__legal-p strong {
	color: var(--ffm-text-soft);
	font-weight: 700;
}

.site-footer__fine {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	font-size: 0.75rem;
	color: var(--ffm-fine);
}

.site-footer__credit {
	opacity: 0.85;
}

.site-footer__credit a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.site-footer__credit a:hover {
	opacity: 1;
}

/* Archives, search, 404 titles */

.page-header {
	margin-bottom: 1.75rem;
}

.page-title {
	font-family: var(--ffm-font-display);
	font-size: clamp(1.4rem, 2.8vw, 1.85rem);
	font-weight: 700;
	margin: 0;
	color: var(--ffm-text);
}

.archive-description {
	margin-top: 0.5rem;
	color: var(--ffm-muted);
	font-size: 0.95rem;
}

/* Posts navigation */

.posts-navigation,
.post-navigation {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ffm-border);
}

.posts-navigation a,
.post-navigation a {
	font-weight: 600;
}

/* Utilities */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--ffm-bg-elevated);
	clip: auto !important;
	clip-path: none;
	color: var(--ffm-text);
	padding: 0.75rem 1rem;
	height: auto;
	width: auto;
	z-index: 100000;
	border-radius: var(--ffm-radius);
	outline: 2px solid var(--ffm-primary-b);
}

.alignwide,
.alignfull {
	margin-left: auto;
	margin-right: auto;
}

/* Comments */

.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ffm-border);
}

.comments-title {
	font-family: var(--ffm-font-display);
	font-size: 1.25rem;
	color: var(--ffm-text);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--ffm-border);
}

.comment-reply-link {
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: var(--ffm-bg-elevated);
	border: 1px solid var(--ffm-border);
	border-radius: var(--ffm-radius);
	color: var(--ffm-text);
	padding: 0.6rem 0.85rem;
	width: 100%;
	max-width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: rgba(0, 192, 250, 0.45);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 192, 250, 0.12);
}

.comment-form .submit {
	background: var(--ffm-grad-primary);
	color: #020617;
	font-weight: 700;
	border: none;
	border-radius: var(--ffm-radius-pill);
	padding: 0.55rem 1.35rem;
	cursor: pointer;
}

.comment-form .submit:hover {
	filter: brightness(1.08);
}

/* Search form */

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.search-form .search-field {
	flex: 1;
	min-width: 200px;
	background: var(--ffm-bg-elevated);
	border: 1px solid var(--ffm-border);
	border-radius: var(--ffm-radius-pill);
	color: var(--ffm-text);
	padding: 0.55rem 1rem;
}

.search-form .search-submit {
	background: var(--ffm-grad-primary);
	color: #020617;
	font-weight: 700;
	border: none;
	border-radius: var(--ffm-radius-pill);
	padding: 0.55rem 1.15rem;
	cursor: pointer;
}

/* Lead forms (Start now / Contact) */

.ffm-leadform {
	max-width: 40rem;
	margin: 1.25rem auto 0;
	padding: 1.25rem;
	border-radius: calc(var(--ffm-radius) + 6px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 12, 20, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}

.ffm-leadform__hd {
	margin-bottom: 1rem;
}

.ffm-leadform__sub {
	margin: 0.35rem 0 0;
	color: var(--ffm-text-soft);
	line-height: 1.55;
}

.ffm-leadform__support {
	margin: 0.75rem 0 0;
	color: var(--ffm-text-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.ffm-leadform__support a {
	color: var(--ffm-text);
	text-decoration: none;
	font-weight: 700;
}

.ffm-leadform__support a:hover,
.ffm-leadform__support a:focus {
	color: var(--ffm-link-hover);
}

.ffm-leadform__supportIc {
	display: inline-flex;
	width: 1.5rem;
	height: 1.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid rgba(0, 192, 250, 0.22);
	background: rgba(0, 12, 28, 0.55);
}

.ffm-leadform__form {
	display: grid;
	gap: 0.85rem;
}

.ffm-leadform__label {
	display: block;
	margin: 0 0 0.35rem;
	font-weight: 700;
	color: var(--ffm-text);
}

.ffm-leadform__input {
	width: 100%;
	max-width: 100%;
	background: var(--ffm-bg-elevated);
	border: 1px solid var(--ffm-border);
	border-radius: var(--ffm-radius);
	color: var(--ffm-text);
	padding: 0.7rem 0.9rem;
}

.ffm-leadform__textarea {
	resize: vertical;
	min-height: 140px;
}

.ffm-leadform__input:focus {
	border-color: rgba(0, 192, 250, 0.45);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 192, 250, 0.12);
}

/* Phone input (match webinar pages exactly) */
.ffm-leadform {
	--ffm-accent: var(--ffm-primary-b);
	--ffm-panel: #18181b;
	--ffm-panel-border: #262626;
	--ffm-input-bg: #1f2937;
	--ffm-input-text: #e5e7eb;
	--ffm-input-border: #374151;
	--ffm-webinar-control-h: 2.5rem;
}

.ffm-leadform .ffm-webinar__phone {
	width: 100%;
	margin: 0;
}

.ffm-leadform .ffm-webinar__phone-root {
	position: relative;
	margin: 0;
}

/* `.ffm-input` + `.phone-input-shell` combined (same element as clean app) */
.ffm-leadform .phone-input-shell.ffm-input {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	min-height: var(--ffm-webinar-control-h);
	max-height: var(--ffm-webinar-control-h);
	background-color: var(--ffm-input-bg) !important;
	color: var(--ffm-input-text) !important;
	border: 2px solid var(--ffm-input-border) !important;
	border-radius: 1.7rem !important;
	font-size: 0.9375rem;
	box-sizing: border-box;
}

.ffm-leadform .phone-input-shell.ffm-input:focus-within {
	border-color: var(--ffm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

.ffm-leadform .phone-input-country-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0 0.55rem 0 0.65rem;
	margin: 0;
	border: none;
	border-right: 2px solid rgba(255, 255, 255, 0.08);
	background: transparent;
	color: inherit;
	cursor: pointer;
	flex: 0 0 auto;
	min-height: var(--ffm-webinar-control-h);
}

.ffm-leadform .phone-input-country-btn:focus-visible {
	outline: none;
	border-color: var(--ffm-accent);
	box-shadow: none;
}

.ffm-leadform .phone-input-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
}

.ffm-leadform .phone-input-arrow svg {
	display: block;
}

.ffm-leadform .phone-input-flag {
	font-size: 1.05rem;
	line-height: 1;
}

.ffm-leadform .phone-input-code {
	font-weight: 600;
	color: #f1f5f9;
}

.ffm-leadform .phone-input-field.ffm-webinar__phone-local {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	align-self: stretch;
	border: none !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ffm-input-text) !important;
	font: inherit;
	letter-spacing: 0.1rem;
	padding: 0 0.9rem;
	min-height: var(--ffm-webinar-control-h);
}

.ffm-leadform .phone-input-field.ffm-webinar__phone-local::placeholder {
	color: var(--ffm-muted);
	opacity: 0.7;
}

.ffm-leadform .phone-input-field.ffm-webinar__phone-local:focus,
.ffm-leadform .phone-input-field.ffm-webinar__phone-local:focus-visible,
.ffm-leadform .phone-input-field.ffm-webinar__phone-local:active {
	outline: none !important;
	box-shadow: none !important;
}

.ffm-leadform .phone-input-dropdown {
	position: absolute;
	left: 0;
	top: calc(100% + 0.4rem);
	width: 100%;
	z-index: 20;
	border-radius: 18px;
	border: 1px solid var(--ffm-panel-border);
	background: var(--ffm-panel);
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.ffm-leadform .phone-input-dropdown__search {
	position: relative;
	z-index: 1;
	padding: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ffm-leadform .phone-input-dropdown__search-icon {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.05rem;
	height: 1.05rem;
	opacity: 0.45;
}

.ffm-leadform .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.9rem 0.65rem 2.25rem;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ffm-text);
}

.ffm-leadform .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field::placeholder {
	color: var(--ffm-muted);
	opacity: 0.95;
}

.ffm-leadform .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field:focus {
	outline: none;
	border-color: var(--ffm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

.ffm-leadform .phone-input-dropdown__list {
	position: relative;
	z-index: 1;
	max-height: 280px;
	overflow: auto;
	padding: 0.25rem;
	margin: 0;
	list-style: none;
}

.ffm-leadform .phone-input-dropdown__option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.75rem;
	border-radius: 14px;
	cursor: pointer;
	color: var(--ffm-text-soft);
}

.ffm-leadform .phone-input-dropdown__option:hover {
	background-color: #1a2434 !important;
}

.ffm-leadform .phone-input-dropdown__option.is-selected {
	background-color: #152030 !important;
	color: var(--ffm-text);
}

.ffm-leadform .phone-input-dropdown__opt-flag {
	font-size: 1rem;
	line-height: 1;
}

.ffm-leadform .phone-input-dropdown__opt-name {
	flex: 1 1 auto;
	min-width: 0;
}

.ffm-leadform .phone-input-dropdown__opt-code {
	flex-shrink: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	opacity: 0.9;
}

.ffm-leadform .phone-input-dropdown__opt-check {
	flex-shrink: 0;
	width: 1rem;
	opacity: 0;
}

.ffm-leadform .phone-input-dropdown__option.is-selected .phone-input-dropdown__opt-check {
	opacity: 1;
}

.ffm-leadform .phone-input-dropdown__empty {
	position: relative;
	z-index: 1;
	padding: 0.75rem 1rem;
	color: var(--ffm-muted);
}

.ffm-leadform__msg {
	margin: 0.15rem 0 0;
	min-height: 1.2em;
	color: var(--ffm-text-soft);
}

.ffm-leadform__msg.is-ok {
	color: rgba(52, 199, 89, 0.95);
}

.ffm-leadform__msg.is-err {
	color: rgba(246, 91, 74, 0.95);
}

/* Animated notice (Start now / Contact) */
.ffm-leadform__notice {
	min-height: 0;
}

.ffm-leadform__noticeInner {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ffm-text-soft);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	animation: ffm-notice-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ffm-leadform__notice.is-loading .ffm-leadform__noticeInner {
	border-color: rgba(0, 192, 250, 0.25);
	background: rgba(0, 192, 250, 0.06);
}

.ffm-leadform__notice.is-ok .ffm-leadform__noticeInner {
	border-color: rgba(52, 199, 89, 0.28);
	background: rgba(52, 199, 89, 0.08);
}

.ffm-leadform__notice.is-err .ffm-leadform__noticeInner {
	border-color: rgba(246, 91, 74, 0.28);
	background: rgba(246, 91, 74, 0.08);
}

.ffm-leadform__noticeIc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	flex: 0 0 auto;
	border: 1px solid rgba(0, 192, 250, 0.22);
	background: rgba(0, 192, 250, 0.08);
	color: rgba(0, 192, 250, 0.98);
	font-weight: 900;
}

.ffm-leadform__notice.is-loading .ffm-leadform__noticeIc {
	border-color: rgba(0, 192, 250, 0.35);
	background: rgba(0, 192, 250, 0.12);
	position: relative;
}

.ffm-leadform__notice.is-loading .ffm-leadform__noticeIc::after {
	content: "";
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 999px;
	border: 2px solid rgba(0, 192, 250, 0.25);
	border-top-color: rgba(0, 192, 250, 0.95);
	display: block;
	animation: ffm-spin 0.85s linear infinite;
}

.ffm-leadform__notice.is-err .ffm-leadform__noticeIc {
	border-color: rgba(246, 91, 74, 0.35);
	background: rgba(246, 91, 74, 0.12);
	color: rgba(246, 91, 74, 0.98);
}

.ffm-leadform__notice.is-ok .ffm-leadform__noticeIc {
	border-color: rgba(52, 199, 89, 0.35);
	background: rgba(52, 199, 89, 0.12);
	color: rgba(52, 199, 89, 0.98);
}

.ffm-leadform__noticeTitle {
	font-family: var(--ffm-font-display);
	font-weight: 800;
	color: var(--ffm-text);
	margin: 0 0 0.15rem;
}

.ffm-leadform__noticeDesc {
	color: var(--ffm-text-soft);
	line-height: 1.5;
}

@keyframes ffm-notice-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ffm-leadform__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Widgets */

.widget-title {
	font-family: var(--ffm-font-display);
	font-size: 1.05rem;
	color: var(--ffm-text);
	margin: 0 0 0.75rem;
}

.widget {
	color: var(--ffm-muted);
}

.widget a {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   6. Home landing — hero, sections, cards, CTAs
   ------------------------------------------------------------------------- */

body.ffm-landing .site-main--landing {
	padding-top: 0;
	padding-bottom: 0;
}

.site-main--landing {
	min-height: auto;
}

.ffm-section {
	padding: 3.25rem 0;
}

.ffm-section.tight {
	padding: 2.25rem 0;
}

.ffm-section.narrow {
	padding: 2rem 0;
}

.ffm-hero {
	padding: clamp(2.75rem, 8vw, 4rem) 0 clamp(2.5rem, 6vw, 3.5rem);
	text-align: center;
}

/* Photo + light scrim; isolate paint for this block */
.ffm-hero.has-bg {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90vh;
	min-height: 90dvh;
	padding: clamp(2.5rem, 12vw, 6rem) 0 clamp(2rem, 7vw, 4rem);
	background-image: linear-gradient(
			180deg,
			rgba(0, 6, 18, 0.45) 0%,
			rgba(0, 0, 0, 0.35) 45%,
			rgba(0, 4, 14, 0.55) 100%
		),
		var(--ffm-hero);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.ffm-eyebrow {
	margin: 0 0 0.75rem;
	font-size: clamp(0.72rem, 2vw, 0.8rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	background: var(--ffm-grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Gradient eyebrow fails on photos — solid + light shadow (fewer / smaller blurs = faster paint) */
.ffm-hero.has-bg .ffm-eyebrow {
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	color: #b8ecff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 4px 28px rgba(0, 0, 0, 0.5);
}

.ffm-hero-title {
	margin: 0 auto 1rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.45rem, 4.2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.12;
	color: var(--ffm-text);
	max-width: 42rem;
}

.ffm-lead {
	margin: 0 auto 1.75rem;
	max-width: min(36rem, 100%);
	font-size: clamp(0.95rem, 2.8vw, 1.05rem);
	color: var(--ffm-text-soft);
	line-height: 1.55;
}

.ffm-hero.has-bg .ffm-hero-title {
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 6px 32px rgba(0, 0, 0, 0.45);
}

.ffm-hero.has-bg .ffm-lead {
	color: rgba(255, 255, 255, 0.96);
	font-weight: 500;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 5px 28px rgba(0, 0, 0, 0.4);
}

.ffm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;
}

/* Hero — larger ghost; animated primary uses .ffm-cta-ring + overrides below */
.ffm-hero .ffm-actions .ffm-btn.ghost {
	padding: 0.85rem 1.65rem;
	font-size: 1.02rem;
	/* backdrop-filter over full-bleed photo is very expensive; solid glass read */
	backdrop-filter: none;
	background: rgba(0, 10, 24, 0.55);
	border-color: rgba(0, 192, 250, 0.45);
}

.ffm-hero .ffm-actions .ffm-btn.ghost:hover,
.ffm-hero .ffm-actions .ffm-btn.ghost:focus {
	background: rgba(0, 30, 48, 0.65);
	border-color: rgba(0, 192, 250, 0.6);
}

/* Hero: static gradient ring + button — same look as “paused” frame, no per-frame @property / bg-position (header keeps full animation) */
.ffm-hero .ffm-cta-ring::before {
	animation: none;
	background: conic-gradient(
		from 200deg,
		var(--ffm-primary-b),
		var(--ffm-primary-a),
		var(--ffm-link),
		var(--ffm-primary-b),
		var(--ffm-primary-a),
		var(--ffm-primary-b)
	);
}

.ffm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	border-radius: var(--ffm-radius-pill);
	border: none;
	transition: filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}

/* Loading state (shared) */
.ffm-btn.is-loading,
.button.ffm-is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.88;
}

.ffm-btn.is-loading::after,
.button.ffm-is-loading::after {
	content: "";
	width: 1em;
	height: 1em;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.38);
	border-top-color: rgba(255, 255, 255, 0.92);
	display: inline-block;
	margin-left: 0.6rem;
	animation: ffm-spin 0.8s linear infinite;
}

@keyframes ffm-spin {
	to {
		transform: rotate(360deg);
	}
}

.ffm-btn.primary {
	background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
	color: #fff !important;
	box-shadow: var(--ffm-glow-primary);
}

.ffm-btn.primary:hover,
.ffm-btn.primary:focus {
	filter: brightness(1.06);
	box-shadow: 0 0 28px rgba(0, 192, 250, 0.35);
}

/* Conic ring + shifting fill on .ffm-btn.primary.header inside .ffm-cta-ring */
.ffm-cta-ring .ffm-btn.primary.header {
	position: relative;
	z-index: 1;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
	box-shadow: none;
	background: linear-gradient(
		135deg,
		var(--ffm-primary-b) 0%,
		var(--ffm-primary-a) 50%,
		var(--ffm-primary-b) 100%
	);
	background-size: 200% 200%;
	animation: ffm-cta-fill 7s ease-in-out infinite;
}

.ffm-cta-ring .ffm-btn.primary.header:hover,
.ffm-cta-ring .ffm-btn.primary.header:focus {
	filter: brightness(1.08);
	box-shadow: 0 0 20px rgba(0, 192, 250, 0.45);
}

.ffm-hero .ffm-cta-ring .ffm-btn.primary.header {
	padding: 0.85rem 1.65rem;
	font-size: 1.02rem;
	animation: none;
	background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
	background-size: auto;
}

@media (prefers-reduced-motion: reduce) {
	.ffm-cta-ring .ffm-btn.primary.header {
		animation: none;
		background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
		background-size: auto;
	}
}

.ffm-btn.ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(0, 192, 250, 0.35);
	color: var(--ffm-text) !important;
	backdrop-filter: blur(12px);
}

.ffm-btn.ghost:hover,
.ffm-btn.ghost:focus {
	border-color: rgba(0, 192, 250, 0.55);
	background: rgba(0, 192, 250, 0.1);
}

.ffm-btn.secondary {
	background: var(--ffm-grad-secondary);
	color: #fff !important;
	box-shadow: var(--ffm-glow-secondary);
}

.ffm-btn.secondary:hover,
.ffm-btn.secondary:focus {
	filter: brightness(1.06);
}

.ffm-section-title {
	margin: 0 0 1.5rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 700;
	text-align: center;
	color: var(--ffm-text);
}

.ffm-section-title.sm {
	font-size: 1.2rem;
	margin-bottom: 0.35rem;
	text-align: start;
}

.ffm-grid {
	display: grid;
	gap: 1rem;
}

.ffm-grid.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ffm-grid.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 782px) {
	.ffm-grid.three,
	.ffm-grid.two {
		grid-template-columns: 1fr;
	}
}

.ffm-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--ffm-border);
	border-radius: var(--ffm-radius);
	padding: 1.35rem 1.25rem;
	backdrop-filter: blur(14px);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ffm-card:hover {
	border-color: rgba(0, 192, 250, 0.28);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ffm-card h3 {
	margin: 0 0 0.5rem;
	font-family: var(--ffm-font-display);
	font-size: 1.1rem;
	color: var(--ffm-text);
}

.ffm-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ffm-muted);
	line-height: 1.55;
}

/* Homepage — “Why trade with us” (features): icons, stagger in, hover lift */

.ffm-features {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 79, 160, 0.12), transparent 55%),
		radial-gradient(ellipse 80% 60% at 100% 50%, rgba(0, 192, 250, 0.05), transparent 50%);
}

.ffm-features-lead {
	margin: -0.35rem auto 2rem;
	max-width: 36rem;
	text-align: center;
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	color: var(--ffm-text-soft);
	line-height: 1.5;
}

.ffm-features-grid {
	gap: 1.15rem;
}

@media (min-width: 783px) {
	.ffm-features-grid {
		gap: 1.25rem;
		align-items: stretch;
	}
}

.ffm-feature-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 1.5rem 1.35rem 1.45rem;
	overflow: hidden;
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s ease,
		box-shadow 0.35s ease,
		background 0.35s ease;
	animation: ffm-feature-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ffm-feature-card:nth-child(1) {
	animation-delay: 0.05s;
}

.ffm-feature-card:nth-child(2) {
	animation-delay: 0.15s;
}

.ffm-feature-card:nth-child(3) {
	animation-delay: 0.25s;
}

.ffm-feature-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(0, 192, 250, 0.35),
		rgba(0, 79, 160, 0.15) 40%,
		transparent 70%
	);
	-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;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.ffm-feature-card:hover,
.ffm-feature-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(0, 192, 250, 0.38);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(0, 192, 250, 0.12),
		0 0 32px rgba(0, 192, 250, 0.12);
	background: rgba(255, 255, 255, 0.055);
}

.ffm-feature-card:hover::before,
.ffm-feature-card:focus-within::before {
	opacity: 1;
}

/* Lucide icons on filled tiles — distinct brand-aligned gradients */

.ffm-feature-card__icon {
	--ffm-feature-icon-glow: rgba(0, 192, 250, 0.35);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1.1rem;
	border-radius: 16px;
	color: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease,
		border-color 0.25s ease,
		filter 0.3s ease;
}

.ffm-feature-card__icon--edu {
	background: linear-gradient(145deg, #003978 0%, #005eb8 45%, #00a3d9 100%);
	--ffm-feature-icon-glow: rgba(0, 163, 217, 0.45);
}

.ffm-feature-card__icon--support {
	background: linear-gradient(145deg, #6b1b3a 0%, #b8324a 48%, #f65b4a 100%);
	--ffm-feature-icon-glow: rgba(246, 91, 74, 0.42);
}

.ffm-feature-card__icon--platform {
	background: linear-gradient(145deg, #041e38 0%, #004fa0 50%, #00c0fa 100%);
	--ffm-feature-icon-glow: rgba(0, 192, 250, 0.45);
}

.ffm-feature-card__icon svg {
	display: block;
}

.ffm-feature-card:hover .ffm-feature-card__icon,
.ffm-feature-card:focus-within .ffm-feature-card__icon {
	transform: scale(1.06) rotate(-2deg);
	border-color: rgba(255, 255, 255, 0.35);
	filter: brightness(1.08) saturate(1.05);
	box-shadow:
		0 10px 32px rgba(0, 0, 0, 0.4),
		0 0 36px var(--ffm-feature-icon-glow),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ffm-feature-card h3 {
	margin-bottom: 0.55rem;
}

@keyframes ffm-feature-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffm-feature-card {
		animation: none;
	}

	.ffm-feature-card:hover,
	.ffm-feature-card:focus-within {
		transform: none;
	}

	.ffm-feature-card:hover .ffm-feature-card__icon,
	.ffm-feature-card:focus-within .ffm-feature-card__icon {
		transform: none;
	}
}

.ffm-card.person .ffm-role {
	color: rgba(0, 192, 250, 0.95);
	font-weight: 700;
	font-size: 0.88rem;
	margin: 0 0 0.65rem;
}

.ffm-section.band {
	padding: 2rem 0;
	background: linear-gradient(90deg, rgba(0, 79, 160, 0.15), rgba(0, 192, 250, 0.08));
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ffm-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ffm-band-text {
	margin: 0;
	color: var(--ffm-text-soft);
	max-width: 36rem;
}

/* Homepage — media credibility (TV / broadcast trust band) */

.ffm-media-cred {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 9vw, 5.25rem) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(ellipse 100% 80% at 50% -20%, rgba(0, 79, 160, 0.2), transparent 55%),
		linear-gradient(180deg, #030810 0%, #050c18 45%, #02060c 100%);
}

.ffm-media-cred__aurora {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.ffm-media-cred__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	animation: ffm-media-orb 32s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.ffm-media-cred__orb--a {
	width: min(50vw, 480px);
	height: min(50vw, 480px);
	left: -8%;
	top: -20%;
	background: radial-gradient(circle, rgba(0, 192, 250, 0.45) 0%, transparent 70%);
}

.ffm-media-cred__orb--b {
	width: min(42vw, 400px);
	height: min(42vw, 400px);
	right: -5%;
	bottom: -15%;
	background: radial-gradient(circle, rgba(0, 79, 160, 0.5) 0%, transparent 72%);
	animation-delay: -14s;
}

@keyframes ffm-media-orb {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	50% {
		transform: translate(4%, 6%) scale(1.08);
	}
}

.ffm-media-cred.has-collage .ffm-media-cred__collage {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.ffm-media-cred__collage-pan {
	position: absolute;
	width: 138%;
	height: 138%;
	left: -19%;
	top: -19%;
	background-image: var(--ffm-media-bg);
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.ffm-media-cred__collage-pan--a {
	opacity: 0.52;
	animation: ffm-media-collage-a 52s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.ffm-media-cred__collage-pan--b {
	opacity: 0.3;
	mix-blend-mode: soft-light;
	animation: ffm-media-collage-b 68s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes ffm-media-collage-a {
	0% {
		transform: translate(0, 0) scale(1);
	}

	100% {
		transform: translate(-6%, 4%) scale(1.09);
	}
}

@keyframes ffm-media-collage-b {
	0% {
		transform: translate(3%, -4%) scale(1.12) rotate(0.4deg);
	}

	100% {
		transform: translate(-5%, 5%) scale(1.2) rotate(-0.35deg);
	}
}

.ffm-media-cred__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		165deg,
		rgba(0, 4, 14, 0.94) 0%,
		rgba(0, 12, 32, 0.82) 42%,
		rgba(0, 2, 10, 0.92) 100%
	);
	pointer-events: none;
}

.ffm-media-cred.has-collage .ffm-media-cred__scrim {
	background: linear-gradient(
		165deg,
		rgba(0, 6, 18, 0.92) 0%,
		rgba(0, 14, 36, 0.78) 45%,
		rgba(0, 3, 12, 0.94) 100%
	);
}

.ffm-media-cred__inner {
	position: relative;
	z-index: 2;
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	animation: ffm-media-inner 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ffm-media-inner {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ffm-media-cred .ffm-eyebrow {
	margin-bottom: 0.65rem;
}

.ffm-media-cred-lead {
	margin: 0 auto 1.75rem;
	max-width: 40rem;
	font-size: clamp(0.95rem, 2.2vw, 1.08rem);
	line-height: 1.6;
	color: var(--ffm-text-soft);
}

.ffm-media-cred-logos-wrap {
	margin: 0 auto 2.5rem;
	max-width: 52rem;
}

.ffm-media-cred-logos-label {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ffm-muted);
}

.ffm-media-cred-logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem 1.5rem;
}

.ffm-media-cred-logos__item {
	margin: 0;
	padding: 0.55rem 0.9rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 8, 18, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition:
		border-color 0.35s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease;
	animation: ffm-media-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ffm-media-cred-logos__item:nth-child(1) {
	animation-delay: 0.05s;
}

.ffm-media-cred-logos__item:nth-child(2) {
	animation-delay: 0.1s;
}

.ffm-media-cred-logos__item:nth-child(3) {
	animation-delay: 0.15s;
}

.ffm-media-cred-logos__item:nth-child(4) {
	animation-delay: 0.2s;
}

.ffm-media-cred-logos__item:nth-child(5) {
	animation-delay: 0.25s;
}

@keyframes ffm-media-logo-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ffm-media-cred-logos__item:hover {
	border-color: rgba(0, 192, 250, 0.35);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ffm-media-cred-logo {
	display: block;
	height: 34px;
	width: auto;
	max-width: min(148px, 32vw);
	object-fit: contain;
	opacity: 0.94;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
	transition: opacity 0.25s ease;
}

.ffm-media-cred-logos__item:hover .ffm-media-cred-logo {
	opacity: 1;
}

.ffm-media-cred-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 1.15rem;
	text-align: start;
}

@media (min-width: 900px) {
	.ffm-media-cred-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.ffm-media-cred-item {
	position: relative;
	padding: 1.35rem 1.2rem 1.4rem;
	border-radius: calc(var(--ffm-radius) + 4px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 14, 24, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease,
		box-shadow 0.45s ease;
	animation: ffm-media-item-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ffm-media-cred-item:nth-child(1) {
	animation-delay: 0.08s;
}

.ffm-media-cred-item:nth-child(2) {
	animation-delay: 0.16s;
}

.ffm-media-cred-item:nth-child(3) {
	animation-delay: 0.24s;
}

.ffm-media-cred-item:nth-child(4) {
	animation-delay: 0.32s;
}

.ffm-media-cred-item::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(0, 192, 250, 0.35),
		rgba(0, 79, 160, 0.12) 45%,
		transparent 65%
	);
	-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;
	opacity: 0.55;
	pointer-events: none;
	animation: ffm-media-border-glow 6s ease-in-out infinite;
}

@keyframes ffm-media-item-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ffm-media-border-glow {
	0%,
	100% {
		opacity: 0.4;
	}

	50% {
		opacity: 0.85;
	}
}

.ffm-media-cred-item:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 192, 250, 0.35);
	box-shadow:
		0 16px 44px rgba(0, 0, 0, 0.45),
		0 0 36px rgba(0, 192, 250, 0.12);
}

.ffm-media-cred-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1rem;
	border-radius: 14px;
	color: rgba(0, 192, 250, 0.95);
	background: linear-gradient(145deg, rgba(0, 79, 160, 0.45), rgba(0, 192, 250, 0.12));
	border: 1px solid rgba(0, 192, 250, 0.25);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: ffm-media-icon-glow 5s ease-in-out infinite;
}

.ffm-media-cred-item:nth-child(2) .ffm-media-cred-item__icon {
	animation-delay: -1.2s;
}

.ffm-media-cred-item:nth-child(3) .ffm-media-cred-item__icon {
	animation-delay: -2.4s;
}

.ffm-media-cred-item:nth-child(4) .ffm-media-cred-item__icon {
	animation-delay: -3.6s;
}

@keyframes ffm-media-icon-glow {
	0%,
	100% {
		filter: brightness(1);
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	}

	50% {
		filter: brightness(1.12);
		box-shadow: 0 6px 28px rgba(0, 192, 250, 0.18);
	}
}

.ffm-media-cred-item__icon svg {
	display: block;
}

.ffm-media-cred-item__title {
	margin: 0 0 0.45rem;
	font-family: var(--ffm-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ffm-text);
	line-height: 1.25;
}

.ffm-media-cred-item__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ffm-muted);
}

.ffm-media-cred-trust {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin: 2.25rem auto 0;
	padding: 0.85rem 1.25rem;
	max-width: 36rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ffm-text-soft);
	border-radius: var(--ffm-radius-pill);
	border: 1px solid rgba(0, 192, 250, 0.2);
	background: rgba(0, 24, 48, 0.35);
	animation: ffm-media-trust-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes ffm-media-trust-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ffm-media-cred-trust__pulse {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
	box-shadow: 0 0 14px rgba(0, 192, 250, 0.55);
	animation: ffm-media-trust-pulse 2.2s ease-in-out infinite;
}

@keyframes ffm-media-trust-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.85;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffm-media-cred__orb {
		animation: none;
	}

	.ffm-media-cred__collage-pan {
		animation: none !important;
	}

	.ffm-media-cred__collage-pan--a {
		transform: translate(-3%, 2%) scale(1.05);
	}

	.ffm-media-cred__collage-pan--b {
		transform: translate(2%, -2%) scale(1.1);
	}

	.ffm-media-cred-logos__item {
		animation: none;
	}

	.ffm-media-cred__inner {
		animation: none;
	}

	.ffm-media-cred-item {
		animation: none;
	}

	.ffm-media-cred-item::before {
		animation: none;
		opacity: 0.5;
	}

	.ffm-media-cred-item__icon {
		animation: none;
	}

	.ffm-media-cred-trust {
		animation: none;
	}

	.ffm-media-cred-trust__pulse {
		animation: none;
	}
}

/* Homepage — instruments: aurora, staggered cards, optional theme images */

.ffm-instruments {
	position: relative;
	overflow: hidden;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	background:
		linear-gradient(180deg, rgba(3, 10, 28, 0.55) 0%, transparent 42%, rgba(0, 50, 90, 0.07) 100%);
}

.ffm-instruments__aurora {
	position: absolute;
	inset: -25% -15% auto;
	height: 75%;
	pointer-events: none;
	z-index: 0;
}

.ffm-instruments__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	opacity: 0.48;
	animation: ffm-inst-orb 36s cubic-bezier(0.45, 0, 0.55, 1) infinite;
	will-change: transform;
}

.ffm-instruments__orb--a {
	width: min(44vw, 440px);
	height: min(44vw, 440px);
	left: 0;
	top: -5%;
	background: radial-gradient(circle, rgba(0, 192, 250, 0.42) 0%, transparent 72%);
}

.ffm-instruments__orb--b {
	width: min(40vw, 380px);
	height: min(40vw, 380px);
	right: 5%;
	top: 10%;
	background: radial-gradient(circle, rgba(0, 79, 160, 0.48) 0%, transparent 72%);
	animation-delay: -12s;
}

.ffm-instruments__orb--c {
	width: min(34vw, 300px);
	height: min(34vw, 300px);
	left: 38%;
	top: 20%;
	background: radial-gradient(circle, rgba(246, 91, 74, 0.32) 0%, transparent 72%);
	animation-delay: -24s;
}

@keyframes ffm-inst-orb {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	25% {
		transform: translate(3.5%, 5%) scale(1.04);
	}

	50% {
		transform: translate(-2.5%, 2.5%) scale(0.985);
	}

	75% {
		transform: translate(2%, -3.5%) scale(1.02);
	}
}

.ffm-instruments__inner {
	position: relative;
	z-index: 1;
}

.ffm-instruments-lead {
	margin: -0.25rem auto 2rem;
	max-width: 38rem;
	text-align: center;
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	color: var(--ffm-text-soft);
	line-height: 1.5;
}

.ffm-instruments-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
	gap: 1.2rem;
}

@media (min-width: 1200px) {
	.ffm-instruments-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.ffm-instrument-card {
	--inst-accent: #00c0fa;
	--inst-glow: rgba(0, 192, 250, 0.22);
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: calc(var(--ffm-radius) + 6px);
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(6, 10, 18, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	overflow: hidden;
	transition:
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.4s ease,
		box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both,
		ffm-inst-card-breathe 8s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite;
}

.ffm-instrument-card:nth-child(1) {
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both,
		ffm-inst-card-breathe 8s cubic-bezier(0.45, 0, 0.55, 1) 1.25s infinite;
}

.ffm-instrument-card:nth-child(2) {
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
		ffm-inst-card-breathe 8.5s cubic-bezier(0.45, 0, 0.55, 1) 1.35s infinite;
}

.ffm-instrument-card:nth-child(3) {
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both,
		ffm-inst-card-breathe 7.5s cubic-bezier(0.45, 0, 0.55, 1) 1.3s infinite;
}

.ffm-instrument-card:nth-child(4) {
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both,
		ffm-inst-card-breathe 8.2s cubic-bezier(0.45, 0, 0.55, 1) 1.4s infinite;
}

.ffm-instrument-card:nth-child(5) {
	animation:
		ffm-inst-card-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
		ffm-inst-card-breathe 7.8s cubic-bezier(0.45, 0, 0.55, 1) 1.45s infinite;
}

.ffm-instrument-card--forex {
	--inst-accent: #5ddbff;
	--inst-glow: rgba(93, 219, 255, 0.28);
}

.ffm-instrument-card--commodities {
	--inst-accent: #f0c14d;
	--inst-glow: rgba(240, 193, 77, 0.3);
}

.ffm-instrument-card--indices {
	--inst-accent: #b8a3ff;
	--inst-glow: rgba(184, 163, 255, 0.28);
}

.ffm-instrument-card--cryptos {
	--inst-accent: #fb923c;
	--inst-glow: rgba(251, 146, 60, 0.3);
}

.ffm-instrument-card--shares {
	--inst-accent: #4ade80;
	--inst-glow: rgba(74, 222, 128, 0.26);
}

.ffm-instrument-card:hover {
	transform: translateY(-8px);
	box-shadow:
		0 22px 48px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(255, 255, 255, 0.06),
		0 0 42px var(--inst-glow);
}

.ffm-instrument-card--forex:hover {
	border-color: rgba(93, 219, 255, 0.45);
}

.ffm-instrument-card--commodities:hover {
	border-color: rgba(240, 193, 77, 0.48);
}

.ffm-instrument-card--indices:hover {
	border-color: rgba(184, 163, 255, 0.45);
}

.ffm-instrument-card--cryptos:hover {
	border-color: rgba(251, 146, 60, 0.48);
}

.ffm-instrument-card--shares:hover {
	border-color: rgba(74, 222, 128, 0.42);
}

.ffm-instrument-card__visual {
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(ellipse 95% 85% at 75% 15%, var(--inst-glow), transparent 58%),
		linear-gradient(165deg, rgba(14, 22, 36, 0.98) 0%, rgba(4, 8, 16, 0.99) 100%);
	overflow: hidden;
	isolation: isolate;
}

.ffm-instrument-card__visual::before {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: 0;
	background: radial-gradient(circle at 45% 45%, var(--inst-glow), transparent 52%);
	opacity: 0.48;
	animation: ffm-inst-visual-drift 20s cubic-bezier(0.45, 0, 0.55, 1) infinite;
	pointer-events: none;
}

.ffm-instrument-card:nth-child(2) .ffm-instrument-card__visual::before {
	animation-delay: -5s;
}

.ffm-instrument-card:nth-child(3) .ffm-instrument-card__visual::before {
	animation-delay: -10s;
}

.ffm-instrument-card:nth-child(4) .ffm-instrument-card__visual::before {
	animation-delay: -14s;
}

.ffm-instrument-card:nth-child(5) .ffm-instrument-card__visual::before {
	animation-delay: -17s;
}

.ffm-instrument-card__img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: 52% 48%;
	animation: ffm-inst-img-drift 34s cubic-bezier(0.45, 0, 0.55, 1) infinite;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffm-instrument-card:nth-child(2) .ffm-instrument-card__img {
	animation-duration: 40s;
	animation-delay: -8s;
}

.ffm-instrument-card:nth-child(3) .ffm-instrument-card__img {
	animation-duration: 30s;
	animation-delay: -14s;
}

.ffm-instrument-card:nth-child(4) .ffm-instrument-card__img {
	animation-duration: 36s;
	animation-delay: -5s;
}

.ffm-instrument-card:nth-child(5) .ffm-instrument-card__img {
	animation-duration: 32s;
	animation-delay: -20s;
}

.ffm-instrument-card:hover .ffm-instrument-card__img {
	animation-play-state: paused;
	transform: scale(1.05);
}

.ffm-instrument-card__placeholder {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--inst-accent);
}

.ffm-instrument-card__ph {
	width: 78%;
	max-width: 200px;
	height: auto;
	animation: ffm-inst-ph-float 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.ffm-instrument-card:nth-child(2) .ffm-instrument-card__ph {
	animation-delay: -1.8s;
}

.ffm-instrument-card:nth-child(3) .ffm-instrument-card__ph {
	animation-delay: -3.6s;
}

.ffm-instrument-card:nth-child(4) .ffm-instrument-card__ph {
	animation-delay: -5.2s;
}

.ffm-instrument-card:nth-child(5) .ffm-instrument-card__ph {
	animation-delay: -6.5s;
}

@keyframes ffm-inst-ph-float {
	0%,
	100% {
		transform: translate(0, 0);
	}

	33% {
		transform: translate(3px, -4px);
	}

	66% {
		transform: translate(-2px, -3px);
	}
}

.ffm-instrument-card__shine {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		100deg,
		transparent 0%,
		transparent 32%,
		rgba(255, 255, 255, 0.06) 42%,
		rgba(255, 255, 255, 0.14) 50%,
		rgba(255, 255, 255, 0.06) 58%,
		transparent 68%,
		transparent 100%
	);
	opacity: 0.5;
	animation: ffm-inst-shine-sweep 16s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
	pointer-events: none;
}

.ffm-instrument-card:nth-child(1) .ffm-instrument-card__shine {
	animation-duration: 16s;
}

.ffm-instrument-card:nth-child(2) .ffm-instrument-card__shine {
	animation-duration: 18s;
	animation-delay: -4s;
}

.ffm-instrument-card:nth-child(3) .ffm-instrument-card__shine {
	animation-duration: 14s;
	animation-delay: -9s;
}

.ffm-instrument-card:nth-child(4) .ffm-instrument-card__shine {
	animation-duration: 19s;
	animation-delay: -6s;
}

.ffm-instrument-card:nth-child(5) .ffm-instrument-card__shine {
	animation-duration: 15s;
	animation-delay: -11s;
}

.ffm-instrument-card:hover .ffm-instrument-card__shine {
	opacity: 0.72;
	filter: brightness(1.12);
}

.ffm-instrument-card__body {
	padding: 1.1rem 1.15rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent);
}

.ffm-instrument-card__title {
	margin: 0 0 0.4rem;
	font-family: var(--ffm-font-display);
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--ffm-text);
	letter-spacing: 0.01em;
}

.ffm-instrument-card__desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--ffm-muted);
}

@keyframes ffm-inst-card-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes ffm-inst-card-breathe {
	0%,
	100% {
		box-shadow:
			0 4px 20px rgba(0, 0, 0, 0.22),
			0 0 0 1px rgba(255, 255, 255, 0.045);
	}

	50% {
		box-shadow:
			0 12px 36px rgba(0, 0, 0, 0.32),
			0 0 32px var(--inst-glow),
			0 0 0 1px rgba(255, 255, 255, 0.08);
	}
}

@keyframes ffm-inst-visual-drift {
	0%,
	100% {
		transform: translate(-4%, -3%) scale(1);
		opacity: 0.36;
	}

	25% {
		transform: translate(9%, 6%) scale(1.07);
		opacity: 0.5;
	}

	50% {
		transform: translate(3%, -9%) scale(1.03);
		opacity: 0.42;
	}

	75% {
		transform: translate(-7%, 4%) scale(1.05);
		opacity: 0.46;
	}
}

@keyframes ffm-inst-img-drift {
	0%,
	100% {
		transform: scale(1.02) translate(0, 0);
	}

	25% {
		transform: scale(1.035) translate(0.35%, -0.25%);
	}

	50% {
		transform: scale(1.045) translate(-0.25%, 0.2%);
	}

	75% {
		transform: scale(1.03) translate(0.15%, 0.3%);
	}
}

@keyframes ffm-inst-shine-sweep {
	0% {
		transform: translateX(-108%);
	}

	100% {
		transform: translateX(108%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffm-instruments__orb {
		animation: none;
	}

	.ffm-instrument-card {
		animation: none;
	}

	.ffm-instrument-card:hover {
		transform: none;
	}

	.ffm-instrument-card:hover .ffm-instrument-card__img {
		transform: none;
	}

	.ffm-instrument-card__ph {
		animation: none;
	}

	.ffm-instrument-card__visual::before {
		animation: none;
	}

	.ffm-instrument-card__img {
		animation: none;
	}

	.ffm-instrument-card__shine {
		animation: none;
		opacity: 0.25;
	}
}

.ffm-pills {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (max-width: 900px) {
	.ffm-pills {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 500px) {
	.ffm-pills {
		grid-template-columns: 1fr;
	}
}

.ffm-pill {
	padding: 1rem 1rem;
	border-radius: var(--ffm-radius);
	border: 1px solid var(--ffm-border);
	background: rgba(10, 14, 20, 0.6);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ffm-pill:hover {
	border-color: rgba(0, 192, 250, 0.35);
	box-shadow: 0 0 20px rgba(0, 192, 250, 0.12);
}

.ffm-pill strong {
	display: block;
	font-family: var(--ffm-font-display);
	font-size: 1rem;
	margin-bottom: 0.35rem;
	color: var(--ffm-text);
}

.ffm-pill span {
	font-size: 0.85rem;
	color: var(--ffm-muted);
	line-height: 1.4;
}

.ffm-card.highlight {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	border-color: rgba(0, 192, 250, 0.22);
}

.ffm-note {
	margin: 0 0 1.25rem;
	color: var(--ffm-muted);
	font-size: 1rem;
}

.ffm-prose {
	margin: 0 0 1.5rem;
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	color: var(--ffm-text-soft);
	line-height: 1.65;
	font-size: 1.02rem;
}

.ffm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

.ffm-section.cta {
	padding: 3.5rem 0 4rem;
	background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(0, 79, 160, 0.2), transparent 55%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ffm-cta-inner {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto;
}

.ffm-cta-title {
	margin: 0 0 0.5rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	color: var(--ffm-text);
}

.ffm-cta-sub {
	margin: 0 0 1.5rem;
	color: var(--ffm-muted);
	line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Webinars archive (post type ffm_webinar)
   ------------------------------------------------------------------------- */

.ffm-webinars-archive .ffm-wrap.content-area {
	max-width: 72rem;
}

.ffm-webinars-archive__hero {
	margin: 0 0 2.5rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: start;
}

/* Events › Webinars */
.ffm-webinars-archive__crumb {
	margin: 0;
}

.ffm-webinars-archive__crumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--ffm-font-display);
}

.ffm-webinars-archive__crumb-list > li + li::before {
	content: "›";
	margin-right: 0.5rem;
	color: var(--ffm-muted);
	font-weight: 500;
	font-size: 0.95em;
}

.ffm-webinars-archive__crumb-parent {
	font-size: clamp(1.25rem, 2.8vw, 1.65rem);
	font-weight: 600;
	line-height: 1.25;
}

.ffm-webinars-archive__crumb-parent a {
	color: var(--ffm-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ffm-webinars-archive__crumb-parent a:hover,
.ffm-webinars-archive__crumb-parent a:focus {
	color: var(--ffm-link);
}

.ffm-webinars-archive__crumb-parent span {
	color: var(--ffm-muted);
}

.ffm-webinars-archive__crumb-current {
	flex: 1 1 auto;
	min-width: 0;
}

.ffm-webinars-archive__title {
	margin: 0;
	display: inline;
	font-family: inherit;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ffm-text);
}

.ffm-webinars-archive__intro {
	margin: 1rem 0 0;
	max-width: 40rem;
	color: var(--ffm-muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

.ffm-webinars-archive__section {
	margin: 0 0 2.75rem;
}

.ffm-webinars-archive__section:last-of-type {
	margin-bottom: 0;
}

.ffm-webinars-archive__section-title {
	margin: 0 0 1rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffm-muted);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ffm-webinars-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
	.ffm-webinars-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Slightly smaller cards + denser grid on archive */
.ffm-webinars-archive__grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1rem;
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.ffm-webinars-archive__grid--compact {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card {
	border-radius: 11px;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__media {
	aspect-ratio: 16 / 10;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__media--placeholder {
	min-height: 7.5rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__body {
	padding: 0.75rem 0.85rem 0.85rem;
	gap: 0.65rem 0.75rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__main {
	gap: 0.25rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__title {
	font-size: 1.02rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__subtitle {
	font-size: 0.82rem;
	-webkit-line-clamp: 2;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__schedule {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__presenter-img {
	width: 2.75rem;
	height: 2.75rem;
	border-width: 1px;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__badge span {
	font-size: 0.62rem;
	padding: 0.12rem 0.45rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__countdown {
	padding: 0.55rem 0.65rem 0.65rem;
}

.ffm-webinars-archive__grid--compact .ffm-countdown-unit {
	padding: 0.3rem 0.15rem;
}

.ffm-webinars-archive__grid--compact .ffm-countdown-unit__value {
	font-size: 0.95rem;
}

.ffm-webinars-archive__grid--compact .ffm-countdown-unit__label {
	font-size: 0.55rem;
	margin-top: 0.1rem;
}

.ffm-webinars-archive__grid--compact .ffm-webinar-card__countdown-label {
	font-size: 0.6rem;
}

.ffm-webinar-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	border: 1px solid var(--ffm-border);
	background: var(--ffm-bg-elevated);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	transition: border-color 0.22s ease, box-shadow 0.26s ease;
}

.ffm-webinar-card:hover {
	border-color: rgba(0, 192, 250, 0.28);
	box-shadow: var(--ffm-glow-primary), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ffm-webinar-card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
	min-height: 0;
}

.ffm-webinar-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0, 79, 160, 0.35), rgba(0, 0, 0, 0.6));
}

.ffm-webinar-card__media--placeholder {
	min-height: 10rem;
	background: linear-gradient(145deg, rgba(0, 79, 160, 0.25), rgba(0, 0, 0, 0.5));
}

.ffm-webinar-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.ffm-webinar-card:hover .ffm-webinar-card__img {
	transform: scale(1.04);
}

.ffm-webinar-card__media-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
	pointer-events: none;
}

.ffm-webinar-card__body {
	padding: 1.1rem 1.15rem 1.15rem;
	flex: 1 1 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1rem;
}

.ffm-webinar-card__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ffm-webinar-card__presenter {
	flex: 0 0 auto;
	align-self: center;
}

.ffm-webinar-card__presenter-img {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid rgba(0, 192, 250, 0.28);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ffm-webinar-card__badge {
	margin: 0 0 0.15rem;
}

.ffm-webinar-card__badge span {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ffm-link);
	background: rgba(0, 192, 250, 0.12);
	border: 1px solid rgba(0, 192, 250, 0.22);
}

.ffm-webinar-card__title {
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ffm-text);
}

.ffm-webinar-card__subtitle {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ffm-muted);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ffm-webinar-card__schedule {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: var(--ffm-text-soft);
}

.ffm-webinar-card__schedule time {
	color: var(--ffm-link);
}

/* Countdown strip (outside the main link) */
.ffm-webinar-card__countdown {
	padding: 0.85rem 1rem 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.35);
}

.ffm-webinar-card__countdown-inner {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ffm-webinar-card__countdown-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ffm-muted);
}

.ffm-webinar-card__countdown-units {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.35rem;
	text-align: center;
}

.ffm-countdown-unit {
	padding: 0.45rem 0.25rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.ffm-countdown-unit__value {
	display: block;
	font-family: var(--ffm-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ffm-text);
	line-height: 1.2;
}

.ffm-countdown-unit__label {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ffm-muted);
}

.ffm-webinar-card__countdown-ended {
	margin: 0;
	text-align: center;
	font-size: 0.88rem;
	color: var(--ffm-primary-b);
	font-weight: 500;
}

.ffm-webinars-archive .navigation.pagination {
	margin-top: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ffm-webinars-archive .navigation.pagination a,
.ffm-webinars-archive .navigation.pagination span {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	border: 1px solid var(--ffm-border);
	background: var(--ffm-surface);
	color: var(--ffm-link);
	text-decoration: none;
	font-size: 0.9rem;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ffm-webinars-archive .navigation.pagination a:hover {
	border-color: rgba(0, 192, 250, 0.4);
	color: var(--ffm-link-hover);
}

.ffm-webinars-archive .navigation.pagination .page-numbers.current {
	color: var(--ffm-text);
	border-color: rgba(0, 192, 250, 0.35);
}

/* -------------------------------------------------------------------------
   Single webinar (ffm_webinar) — layout: .webinar-grid | template: content-webinar.php
   ------------------------------------------------------------------------- */

.site-main.ffm-webinar-single {
	position: relative;
	padding-top: 0;
	min-height: unset;
}

.ffm-webinar-single .ffm-wrap.content-area {
	max-width: min(90rem, 100%);
}

/* ---- Root: uses global :root FFM colors only ---- */
.webinar {
	margin: 0;
	padding: 0 0 2.5rem;
	color: var(--ffm-text);
}

.webinar-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: stretch;
}

@media screen and (min-width: 900px) {
	.webinar-grid {
		grid-template-columns: 40% 60%;
		align-items: start;
	}
}

/* ---- Left: rail + presenter (+ optional thumb) ---- */
.webinar-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ffm-bg);
}

.webinar-aside-inner {
	position: relative;
	display: block;
}

.webinar-rail {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	right: auto;
	bottom: 0;
	height: 78%;
	background: linear-gradient(165deg, rgba(0, 79, 160, 0.5) 0%, rgba(0, 192, 250, 0.18) 100%);
	border-radius: 1.75rem 1.75rem 0 0;
	box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.35);
	z-index: 1;
}

.webinar-presenter {
	position: relative;
	z-index: 2;
	padding: 0 1rem;
	box-sizing: border-box;
	text-align: left;
}

.webinar-presenter::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 52%;
	pointer-events: none;
	background: linear-gradient(to top, var(--ffm-bg), transparent);
	z-index: 3;
}

.webinar-presenter-img {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 960px;
	margin-left: 30px;
	margin-right: auto;
	object-fit: contain;
	object-position: center;
}

.webinar-presenter-card {
	position: absolute;
	right: 3rem;
	bottom: 6rem;
	top: auto;
	z-index: 5;
	max-width: 14rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.webinar-presenter-card .webinar-host-name {
	font-family: var(--ffm-font-display);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffm-text);
	line-height: 1.15;
}

.webinar-presenter-card .webinar-host-role {
	font-size: 0.8rem;
	color: var(--ffm-muted);
	line-height: 1.35;
}

.webinar-thumb {
	position: relative;
	z-index: 3;
	padding: 0.75rem 1rem 1rem;
}

.webinar-thumb-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.65rem;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

/* ---- Right column ---- */
.webinar-main {
	min-width: 0;
	padding: clamp(1.25rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2.5rem) 2rem;
	background: linear-gradient(165deg, var(--ffm-bg-elevated) 0%, var(--ffm-bg) 55%, #020508 100%);
	border-top: 1px solid var(--ffm-border);
}

@media screen and (min-width: 900px) {
	.webinar-main {
		border-top: none;
		border-left: 1px solid var(--ffm-border);
	}
}

.webinar-crumb {
	margin: 0 0 1.25rem;
}

.webinar-crumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--ffm-font-display);
	font-size: 0.8125rem;
	font-weight: 500;
}

.webinar-crumb-list li:not(:last-child)::after {
	content: "›";
	margin-left: 0.45rem;
	color: var(--ffm-muted);
}

.webinar-crumb-list a {
	color: var(--ffm-muted);
	text-decoration: none;
}

.webinar-crumb-list a:hover,
.webinar-crumb-list a:focus-visible {
	color: var(--ffm-link);
}

.webinar-crumb-list .muted {
	color: var(--ffm-muted);
}

.webinar-crumb-list li[aria-current="page"] {
	color: var(--ffm-text);
	max-width: 100%;
	word-break: break-word;
}

.webinar-header {
	margin-bottom: 1.5rem;
}

.webinar-kicker {
	margin: 0 0 0.15rem;
	font-family: "Great Vibes", cursive;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1;
	color: var(--ffm-text);
}

.webinar-title {
	margin: 0 0 1rem;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.65rem, 3.8vw, 2.85rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	background: var(--ffm-grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	max-width: 20ch;
}

.webinar-lead.entry-content {
	margin: 0;
	max-width: 38rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ffm-text-soft);
}

.webinar-lead.entry-content > :first-child {
	margin-top: 0;
}

.webinar-lead.entry-content > :last-child {
	margin-bottom: 0;
}

/* Topic pill + line */
.webinar-topic {
	margin: 0 0 1.5rem;
	max-width: 38rem;
}

.webinar-topic-badge {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	background: var(--ffm-grad-primary);
	color: #020617;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.webinar-topic-text {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 600;
	font-style: italic;
	color: var(--ffm-link);
	line-height: 1.45;
}

/* Date row + countdown — single outer card (same gradient/border/shadow as before, one box) */
.webinar-schedule-card {
	position: relative;
	max-width: 36rem;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 1.75rem;
	padding: 0.4rem;
	border-radius: 1.35rem;
	overflow: hidden;
	background: linear-gradient(155deg, rgba(0, 79, 160, 0.22) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 10, 18, 0.92) 100%);
	border: 1px solid rgba(0, 192, 250, 0.26);
	box-shadow:
		0 0 0 1px rgba(0, 192, 250, 0.06),
		0 14px 44px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.webinar-schedule-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 90% 70% at 50% -30%, rgba(0, 192, 250, 0.18), transparent 52%);
}

.webinar-schedule-card .webinar-meta,
.webinar-schedule-card .webinar-countdown {
	position: relative;
	z-index: 1;
}

.webinar-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 0 0.85rem;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid rgba(0, 192, 250, 0.14);
}

.webinar-meta-date {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 1.05rem 1.1rem 1.1rem 1.2rem;
	border-radius: 1rem 0 0 1rem;
	background: rgba(0, 0, 0, 0.38);
	border: none;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ffm-text);
}

.webinar-meta-date::after {
	content: '';
	position: absolute;
	top: 18%;
	right: 0;
	bottom: 18%;
	width: 1px;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(0, 192, 250, 0.35) 20%,
		rgba(0, 192, 250, 0.35) 80%,
		transparent
	);
}

.webinar-meta-day {
	display: inline-block;
	padding: 0.15rem 0.55rem 0.12rem;
	border-radius: var(--ffm-radius-pill);
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(0, 192, 250, 0.14);
	border: 1px solid rgba(0, 192, 250, 0.28);
	box-shadow: 0 0 20px rgba(0, 192, 250, 0.08);
}

.webinar-meta-num {
	font-family: var(--ffm-font-display);
	font-size: 1.42rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ffm-text);
	text-shadow: 0 0 24px rgba(0, 192, 250, 0.12);
}

.webinar-meta-time {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.55rem;
	margin: 0;
	padding: 1.05rem 1.2rem 1.1rem 1.1rem;
	border-radius: 0 1rem 1rem 0;
	background: linear-gradient(165deg, rgba(0, 79, 160, 0.12), rgba(0, 0, 0, 0.2));
	border: none;
}

.webinar-meta-label {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: var(--ffm-radius-pill);
	font-size: 0.6rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #020617;
	background: var(--ffm-grad-primary);
	box-shadow: 0 2px 12px rgba(0, 192, 250, 0.22);
}

.webinar-meta-time time {
	display: inline-block;
	font-size: 1.55rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ffm-primary-b);
	text-shadow: 0 0 22px rgba(0, 192, 250, 0.2);
}

/* Countdown tokens (+ registration form width) */
.webinar-countdown,
.ffm-webinar-single .ffm-webinar {
	width: 100%;
	box-sizing: border-box;
	/* ffm-app-clean .theme-ffm — inputs + phone (resources/css/app.css) */
	--ffm-text: #f3f4f6;
	--ffm-muted: #9ca3af;
	--ffm-accent: #00c0fa;
	--ffm-panel: #18181b;
	--ffm-panel-border: #262626;
	--ffm-input-bg: #1f2937;
	--ffm-input-text: #e5e7eb;
	--ffm-input-border: #374151;
	/* One height for inputs + button so Safari/Chrome match (Safari inflates <input> otherwise) */
	--ffm-webinar-control-h: 2.5rem;
}

.ffm-webinar-single .ffm-webinar {
	max-width: 36rem;
}

.webinar-countdown {
	position: relative;
	margin: 0;
	padding: 0.85rem 0.85rem 1.05rem;
	border-radius: 0;
	overflow: visible;
	background: none;
	border: none;
	box-shadow: none;
}

.webinar-countdown-heading {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ffm-muted);
}

.webinar-countdown-units {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.65rem;
	text-align: center;
}

.webinar-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	min-width: 0;
	flex-shrink: 0;
}

.webinar-countdown-value {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	/* Fixed height — no grow/shrink when digits or animation change */
	height: 3.55rem;
	min-height: 3.55rem;
	max-height: 3.55rem;
	padding: 0.35rem 0.3rem;
	border-radius: 1rem;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(0, 192, 250, 0.12),
		0 4px 16px rgba(0, 0, 0, 0.35);
	perspective: 340px;
	transform-style: preserve-3d;
	transform: translateZ(0);
}

.webinar-countdown-num {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 3ch;
	min-height: 2.15rem;
	padding: 0;
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: 1.9rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--ffm-text);
	text-align: center;
	text-shadow: 0 0 28px rgba(0, 192, 250, 0.2);
}

/* Layer under: previous digit, stays put while incoming flips over it */
.webinar-countdown-num--under {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

/* New digit: full-cell opaque bg, 3D flip over old value (no border) */
.webinar-countdown-num--incoming {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: inherit;
	background: rgb(10, 18, 28);
	pointer-events: none;
	transform: rotateX(-92deg);
	transform-origin: 50% 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	animation: webinar-countdown-flip-in 0.56s cubic-bezier(0.4, 0.7, 0.2, 1) forwards;
}

@keyframes webinar-countdown-flip-in {
	0% {
		transform: rotateX(-92deg);
		opacity: 0.6;
	}
	100% {
		transform: rotateX(0);
		opacity: 1;
	}
}

.webinar-countdown-label {
	display: block;
	margin: 0;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ffm-muted);
}

.webinar-countdown-ended {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ffm-text-soft);
}

@media (prefers-reduced-motion: reduce) {
	.webinar-countdown-num--incoming {
		animation: none;
		transform: none;
		opacity: 1;
	}
}

/* Registration */
.webinar-register {
	margin: 0;
	padding-top: 0.5rem;
}

.webinar-register-title {
	margin: 0 0 1rem;
	font-family: var(--ffm-font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ffm-muted);
}

.webinar-form {
	min-width: 0;
	overflow: visible;
}

/* Plugin form — names unchanged */
.ffm-webinar-single .ffm-webinar {
	margin: 0;
	overflow: visible;
}

.ffm-webinar-single .ffm-webinar__field {
	margin: 0 0 0.65rem;
}

.ffm-webinar-single .ffm-webinar__msg {
	margin: 0 0 1rem;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	color: var(--ffm-text-soft);
}

/* Logged-in + already registered — success banner */
.ffm-webinar-single .ffm-webinar__msg--dup {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 1.1rem;
	padding: 1rem 1.15rem 1.05rem;
	border-radius: 1.1rem;
	background: linear-gradient(
		145deg,
		rgba(34, 197, 94, 0.16) 0%,
		rgba(16, 185, 129, 0.09) 55%,
		rgba(6, 78, 59, 0.2) 100%
	);
	border: 1px solid rgba(74, 222, 128, 0.42);
	box-shadow:
		0 0 0 1px rgba(34, 197, 94, 0.08) inset,
		0 8px 24px rgba(0, 0, 0, 0.18);
	color: #bbf7d0;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.ffm-webinar-single .ffm-webinar__registered-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.22);
	color: #4ade80;
}

.ffm-webinar-single .ffm-webinar__registered-icon svg {
	display: block;
	width: 1.45rem;
	height: 1.45rem;
}

.ffm-webinar-single .ffm-webinar__registered-text {
	flex: 1;
	min-width: 0;
}

.ffm-webinar-single .ffm-webinar__register-other-wrap {
	margin: 0 0 0.5rem;
}

.ffm-webinar-single .ffm-webinar__register-other-btn.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: var(--ffm-webinar-control-h, 2.5rem);
	padding: 0 1rem;
	border-radius: var(--ffm-radius-pill);
	background: transparent;
	color: var(--ffm-primary-b);
	font-weight: 600;
	font-size: 0.875rem;
	border: 2px solid rgba(0, 192, 250, 0.45);
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ffm-webinar-single .ffm-webinar__register-other-btn.button:hover,
.ffm-webinar-single .ffm-webinar__register-other-btn.button:focus-visible {
	background: rgba(0, 192, 250, 0.1);
	border-color: var(--ffm-accent);
	color: #fff;
}

.ffm-webinar-single .ffm-webinar__field label {
	display: block;
	margin-bottom: 0.22rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--ffm-text-soft);
}

.ffm-webinar-single .ffm-webinar__field .required {
	color: var(--ffm-secondary-a);
}

/*
 * Text inputs — same colors/strokes as ffm-app-clean `.ffm-input`
 * Fixed height + border-box: Safari otherwise grows <input> taller than the submit button.
 */
.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field) {
	width: 100%;
	box-sizing: border-box;
	height: var(--ffm-webinar-control-h);
	min-height: var(--ffm-webinar-control-h);
	max-height: var(--ffm-webinar-control-h);
	padding: 0 0.7rem;
	background-color: var(--ffm-input-bg);
	color: var(--ffm-input-text);
	border: 2px solid var(--ffm-input-border);
	border-radius: 1.7rem;
	font-size: 0.9375rem;
	font-family: inherit;
	line-height: calc(var(--ffm-webinar-control-h) - 4px);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field)::placeholder {
	color: var(--ffm-muted);
	opacity: 0.6;
}

.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field):focus,
.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field):focus-visible {
	border-color: var(--ffm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

/* Safari / WebKit: native Contacts & Keychain affordances — hide; cannot remove in all builds but reduces layout bite */
.ffm-webinar-single .ffm-webinar input::-webkit-credentials-auto-fill-button,
.ffm-webinar-single .ffm-webinar input::-webkit-contacts-auto-fill-button {
	display: none !important;
	visibility: hidden;
	pointer-events: none;
	margin: 0 !important;
}

/*
 * Phone — ffm-app-clean `.ffm-input` + `.phone-input-shell` + country btn + field (app.css ~770–850)
 */
.ffm-webinar-single .ffm-webinar__field--phone {
	overflow: visible;
	/* Solid surfaces — no translucent panels (readability) */
	--ffm-phone-chip-bg: #252f3d;
	--ffm-phone-chip-border: rgba(148, 163, 184, 0.38);
	--ffm-dropdown-bg: #10141c;
	--ffm-dropdown-search-bg: #10141c;
	--ffm-dropdown-input-bg: #1a222d;
	--ffm-dropdown-row-hover: #1e2836;
	--ffm-dropdown-row-selected: #1a2533;
}

.ffm-webinar-single .ffm-webinar__field--phone .ffm-webinar__phone {
	width: 100%;
	margin: 0;
	padding: 0;
}

.ffm-webinar-single .ffm-webinar__phone-root {
	position: relative;
	margin: 0;
	padding: 0;
}

/* `.ffm-input` + `.phone-input-shell` combined (same element as clean app) */
.ffm-webinar-single .phone-input-shell.ffm-input {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.25rem 0.5rem;
	box-sizing: border-box;
	width: 100%;
	height: var(--ffm-webinar-control-h);
	min-height: var(--ffm-webinar-control-h);
	max-height: var(--ffm-webinar-control-h);
	background-color: var(--ffm-input-bg);
	color: var(--ffm-input-text);
	border: 2px solid var(--ffm-input-border);
	border-radius: 1.7rem;
	font-size: 0.9375rem;
	font-family: inherit;
	line-height: 1.25;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ffm-webinar-single .phone-input-shell.ffm-input:focus-within {
	border-color: var(--ffm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

.ffm-webinar-single .phone-input-country-btn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.28rem;
	flex: 0 1 auto;
	min-width: 5.75rem;
	max-width: 42%;
	align-self: stretch;
	box-sizing: border-box;
	margin: 0;
	padding: 0 0.45rem;
	border-radius: 9999px;
	border: 1px solid var(--ffm-phone-chip-border);
	background-color: var(--ffm-phone-chip-bg);
	background-image: none;
	color: var(--ffm-text);
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ffm-webinar-single .phone-input-country-btn:hover {
	background-color: #2d3a4d;
	border-color: rgba(0, 192, 250, 0.35);
}

.ffm-webinar-single .phone-input-country-btn:focus-visible {
	outline: none;
	border-color: var(--ffm-accent);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 0 0 2px color-mix(in srgb, var(--ffm-accent) 35%, transparent);
}

.ffm-webinar-single .phone-input-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	order: 3;
	margin-left: 0.1rem;
	color: rgba(203, 213, 225, 0.95);
	line-height: 1;
	font-size: 10px;
}

.ffm-webinar-single .phone-input-arrow svg {
	display: block;
}

.ffm-webinar-single .phone-input-flag {
	font-size: 1.05rem;
	line-height: 1;
	order: 1;
}

.ffm-webinar-single .phone-input-code {
	font-weight: 600;
	color: #f1f5f9;
	line-height: 1;
	padding-left: 0.2rem;
	letter-spacing: 0.06rem;
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.ffm-webinar-single .phone-input-field.ffm-webinar__phone-local {
	flex: 1 1 auto;
	align-self: stretch;
	min-width: 0;
	min-height: 0;
	height: 100%;
	border: none;
	outline: none;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ffm-input-text);
	font: inherit;
	letter-spacing: 0.1rem;
	line-height: calc(var(--ffm-webinar-control-h) - 0.5rem - 6px);
	padding: 0 0.15rem;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	color-scheme: dark;
}

.ffm-webinar-single .phone-input-field.ffm-webinar__phone-local::placeholder {
	color: var(--ffm-muted);
	opacity: 0.7;
}

.ffm-webinar-single .phone-input-field.ffm-webinar__phone-local:focus,
.ffm-webinar-single .phone-input-field.ffm-webinar__phone-local:focus-visible,
.ffm-webinar-single .phone-input-field.ffm-webinar__phone-local:active {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	background: transparent !important;
}

/* Dropdown — fully opaque (no backdrop blur bleed-through in WebKit) */
.ffm-webinar-single .phone-input-dropdown {
	position: absolute;
	left: 0;
	top: calc(100% + 0.35rem);
	z-index: 10050;
	width: 20rem;
	max-width: min(20rem, calc(100vw - 2rem));
	border-radius: 0.75rem;
	/* Literal solids — wins over any global `ul`/panel transparency */
	background-color: #0c1018 !important;
	background: #0c1018 !important;
	border: 1px solid #374151;
	box-shadow:
		0 25px 50px -12px rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	opacity: 1 !important;
	isolation: isolate;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transform: translateZ(0);
}

.ffm-webinar-single .phone-input-dropdown__search {
	position: relative;
	z-index: 1;
	padding: 0.5rem;
	border-bottom: 1px solid #374151;
	background-color: #0c1018 !important;
	background: #0c1018 !important;
}

.ffm-webinar-single .phone-input-dropdown__search-icon {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	opacity: 0.55;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
	pointer-events: none;
}

.ffm-webinar-single .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	min-height: 2.25rem;
	padding: 0.45rem 0.55rem 0.45rem 2rem;
	border-radius: 0.5rem;
	border: 1px solid #4b5563;
	background-color: #1a222d !important;
	background: #1a222d !important;
	color: #e5e7eb;
	font-size: 0.8125rem;
	line-height: 1.35;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.ffm-webinar-single .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field::placeholder {
	color: var(--ffm-muted);
	opacity: 0.95;
}

.ffm-webinar-single .ffm-webinar__phone-cc-search-input.phone-input-dropdown__search-field:focus {
	outline: none;
	border-color: var(--ffm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

.ffm-webinar-single .phone-input-dropdown__list {
	position: relative;
	z-index: 1;
	max-height: 15rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background-color: #0c1018 !important;
	background: #0c1018 !important;
}

.ffm-webinar-single .phone-input-dropdown__option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.75rem;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #e5e7eb;
	background-color: #0c1018;
	transition: background-color 0.12s ease;
}

.ffm-webinar-single .phone-input-dropdown__option:hover {
	background-color: #1a2434 !important;
}

.ffm-webinar-single .phone-input-dropdown__option.is-selected {
	background-color: #152030 !important;
}

.ffm-webinar-single .phone-input-dropdown__opt-flag {
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

.ffm-webinar-single .phone-input-dropdown__opt-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ffm-text);
}

.ffm-webinar-single .phone-input-dropdown__opt-code {
	flex-shrink: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--ffm-muted);
}

.ffm-webinar-single .phone-input-dropdown__opt-check {
	flex-shrink: 0;
	width: 1rem;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ffm-accent);
	opacity: 0;
}

.ffm-webinar-single .phone-input-dropdown__option.is-selected .phone-input-dropdown__opt-check {
	opacity: 1;
}

.ffm-webinar-single .phone-input-dropdown__empty {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 1rem 0.75rem;
	font-size: 0.75rem;
	color: var(--ffm-muted);
	text-align: center;
	background-color: #0c1018;
}

/* Kill default yellow autofill; keep same surface + text as normal inputs */
.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field):-webkit-autofill,
.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field):-webkit-autofill:hover {
	-webkit-text-fill-color: var(--ffm-input-text);
	caret-color: var(--ffm-input-text);
	border: 2px solid var(--ffm-input-border);
	box-shadow: inset 0 0 0 1000px var(--ffm-input-bg);
	transition: background-color 99999s ease-out 0s;
}

.ffm-webinar-single .ffm-webinar__field input:not(.ffm-webinar__phone-local):not(.phone-input-field):not(.ffm-webinar__phone-cc-search-input):not(.phone-input-dropdown__search-field):-webkit-autofill:focus {
	-webkit-text-fill-color: var(--ffm-input-text);
	caret-color: var(--ffm-input-text);
	border-color: var(--ffm-accent) !important;
	box-shadow:
		inset 0 0 0 1000px var(--ffm-input-bg),
		0 0 0 3px color-mix(in srgb, var(--ffm-accent) 10%, transparent) !important;
}

/* Phone local: match shell fill (ffm-app-clean input bg) */
.ffm-webinar-single .ffm-webinar__field--phone .ffm-webinar__phone-local:-webkit-autofill,
.ffm-webinar-single .ffm-webinar__field--phone .ffm-webinar__phone-local:-webkit-autofill:hover {
	border: none !important;
	box-shadow: inset 0 0 0 1000px var(--ffm-input-bg) !important;
	-webkit-text-fill-color: var(--ffm-input-text);
	caret-color: var(--ffm-input-text);
	transition: background-color 99999s ease-out 0s;
}

.ffm-webinar-single .ffm-webinar__field--phone .ffm-webinar__phone-local:-webkit-autofill:focus {
	border: none !important;
	box-shadow: inset 0 0 0 1000px var(--ffm-input-bg) !important;
	outline: none !important;
}

.ffm-webinar-single .ffm-webinar__actions {
	margin-top: 0.85rem;
}

/* Match .ffm-btn.primary — same outer height as inputs (2px transparent border = same box model as fields) */
.ffm-webinar-single .ffm-webinar__submit.button,
.ffm-webinar-single .ffm-webinar__cta.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	height: var(--ffm-webinar-control-h);
	min-height: var(--ffm-webinar-control-h);
	max-height: var(--ffm-webinar-control-h);
	padding: 0 1.35rem;
	border: 2px solid transparent;
	border-radius: var(--ffm-radius-pill);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	box-shadow: var(--ffm-glow-primary);
	transition: filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Gradient on a clipped layer — avoids Safari/WebKit “rectangular ears” at pill ends (native button + bg on one box). */
.ffm-webinar-single .ffm-webinar__submit.button::before,
.ffm-webinar-single .ffm-webinar__cta.button::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(135deg, var(--ffm-primary-b), var(--ffm-primary-a));
	pointer-events: none;
}

.ffm-webinar-single .ffm-webinar__submit.button:hover,
.ffm-webinar-single .ffm-webinar__cta.button:hover,
.ffm-webinar-single .ffm-webinar__submit.button:focus-visible,
.ffm-webinar-single .ffm-webinar__cta.button:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 0 28px rgba(0, 192, 250, 0.35);
}

.ffm-webinar-single .ffm-webinar__feedback {
	margin-top: 1rem;
	padding: 0.85rem 1.1rem;
	border-radius: 1rem;
	font-size: 0.92rem;
}

.ffm-webinar-single .ffm-webinar__feedback--success,
.ffm-webinar-single .ffm-webinar__feedback--error {
	background: transparent;
	border: none;
	color: var(--ffm-text-soft);
}

.ffm-webinar-single .ffm-webinar-error {
	margin: 0;
	color: var(--ffm-secondary-a);
	font-size: 0.95rem;
}

.ffm-webinar-single .ffm-webinar--external {
	text-align: start;
}

/* Mobile stack: main first for reading */
@media screen and (max-width: 899px) {
	.webinar-main {
		order: -1;
	}
}

@media screen and (max-width: 480px) {
	.ffm-webinar-single .ffm-wrap.content-area {
		padding-left: max(var(--ffm-space), env(safe-area-inset-left));
		padding-right: max(var(--ffm-space), env(safe-area-inset-right));
	}

	.webinar-meta {
		grid-template-columns: 1fr;
	}

	.webinar-meta-date {
		border-radius: 1rem 1rem 0 0;
	}

	.webinar-meta-date::after {
		display: none;
	}

	.webinar-meta-time {
		border-radius: 0 0 1rem 1rem;
		border-top: 1px solid rgba(0, 192, 250, 0.14);
	}

	.webinar-countdown-units {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* — end single webinar styles — */

/* -------------------------------------------------------------------------
   Events archive (plugin CPT ffm_event) — /events/
   ------------------------------------------------------------------------- */

.ffm-events-archive .ffm-wrap.content-area {
	max-width: 72rem;
}

.ffm-events-archive__hero {
	margin: 0 0 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: start;
}

.ffm-events-archive__title {
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ffm-text);
}

.ffm-events-archive__intro {
	margin: 0.75rem 0 0;
	max-width: 40rem;
	color: var(--ffm-muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

.ffm-events-archive__child-nav {
	margin: 1rem 0 0;
}

.ffm-events-archive__child-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--ffm-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--ffm-link);
	border: 1px solid rgba(0, 192, 250, 0.28);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(0, 192, 250, 0.08);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ffm-events-archive__child-link:hover {
	border-color: rgba(0, 192, 250, 0.45);
	color: var(--ffm-link-hover);
	background: rgba(0, 192, 250, 0.12);
}

.ffm-events-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.ffm-event-card {
	border-radius: 12px;
	border: 1px solid var(--ffm-border);
	background: var(--ffm-bg-elevated);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	transition: border-color 0.22s ease, box-shadow 0.26s ease, transform 0.22s ease;
}

.ffm-event-card:hover {
	border-color: rgba(0, 192, 250, 0.28);
	box-shadow: var(--ffm-glow-primary), 0 10px 36px rgba(0, 0, 0, 0.38);
	transform: translateY(-2px);
}

.ffm-event-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.ffm-event-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
}

.ffm-event-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ffm-event-card:hover .ffm-event-card__img {
	transform: scale(1.03);
}

.ffm-event-card__body {
	padding: 1rem 1.1rem 1.15rem;
	flex: 1 1 auto;
}

.ffm-event-card__title {
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ffm-text);
}

.ffm-event-card__excerpt {
	margin: 0.4rem 0 0;
	font-size: 0.88rem;
	color: var(--ffm-muted);
	line-height: 1.45;
}

.ffm-events-archive .navigation.pagination {
	margin-top: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ffm-events-archive .navigation.pagination a,
.ffm-events-archive .navigation.pagination span {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	border: 1px solid var(--ffm-border);
	background: var(--ffm-surface);
	color: var(--ffm-link);
	text-decoration: none;
	font-size: 0.9rem;
	transition: border-color 0.2s ease, color 0.2s ease;
}

/* Single event */
.ffm-event-single .content-area {
	max-width: 48rem;
}

.ffm-event-single-article__header {
	margin-bottom: 1.25rem;
}

.ffm-event-single-article__thumb {
	margin: 0 0 1.5rem;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--ffm-border);
}

.ffm-event-single-article__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.ffm-event-single-article__body {
	color: var(--ffm-text-soft);
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Homepage — upcoming events & webinars (grid + countdown)
   ------------------------------------------------------------------------- */

.ffm-home-upcoming {
	position: relative;
	overflow: hidden;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0, 79, 160, 0.14), transparent 55%),
		linear-gradient(180deg, #030810 0%, #060f1a 100%);
}

.ffm-home-upcoming__glow {
	position: absolute;
	inset: auto 0 0 0;
	height: 45%;
	pointer-events: none;
	background: radial-gradient(ellipse 80% 90% at 50% 100%, rgba(0, 192, 250, 0.08), transparent 65%);
	opacity: 0.9;
}

.ffm-home-upcoming .ffm-wrap {
	position: relative;
	z-index: 1;
}

.ffm-home-upcoming-lead {
	margin: -0.35rem auto 2rem;
	max-width: 36rem;
	text-align: center;
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	line-height: 1.55;
	color: var(--ffm-text-soft);
}

.ffm-home-upcoming-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
	width: 100%;
	max-width: min(100%, 72rem);
	margin-inline: auto;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.ffm-home-upcoming-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ffm-home-upcoming-grid {
		grid-template-columns: 1fr;
	}
}

.ffm-home-upcoming-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: calc(var(--ffm-radius) + 4px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 12, 20, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease,
		box-shadow 0.4s ease;
	animation: ffm-home-upcoming-card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ffm-home-upcoming-card:nth-child(1) {
	animation-delay: 0.05s;
}

.ffm-home-upcoming-card:nth-child(2) {
	animation-delay: 0.1s;
}

.ffm-home-upcoming-card:nth-child(3) {
	animation-delay: 0.15s;
}

.ffm-home-upcoming-card:nth-child(4) {
	animation-delay: 0.2s;
}

.ffm-home-upcoming-card:nth-child(5) {
	animation-delay: 0.25s;
}

.ffm-home-upcoming-card:nth-child(6) {
	animation-delay: 0.3s;
}

@keyframes ffm-home-upcoming-card-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ffm-home-upcoming-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 192, 250, 0.35);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.45),
		0 0 40px rgba(0, 192, 250, 0.1);
}

.ffm-home-upcoming-card.is-event {
	border-color: rgba(184, 163, 255, 0.15);
}

.ffm-home-upcoming-card.is-event:hover {
	border-color: rgba(184, 163, 255, 0.35);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.45),
		0 0 36px rgba(184, 163, 255, 0.12);
}

/* Webinar without featured image: rail + presenter photo + info overlaid on top */

.ffm-home-upcoming-card.has-presenter-layout {
	padding: 0;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	border: none;
}

.ffm-home-upcoming-card.has-presenter-layout:hover {
	box-shadow: none;
	border: none;
}

.ffm-home-upcoming-card.has-presenter-layout .ffm-home-upcoming-card__presenter-stack {
	flex: 1 1 auto;
	width: 100%;
	min-height: min(52vw, 320px);
}

.ffm-home-upcoming-card__presenter-stack {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: min(52vw, 320px);
	background:
		radial-gradient(ellipse 90% 70% at 20% 100%, rgba(0, 79, 160, 0.22), transparent 55%),
		var(--ffm-bg);
	isolation: isolate;
}

.ffm-home-upcoming-card__rail {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 62%;
	max-width: 220px;
	height: 82%;
	margin-left: 0;
	transform: none;
	background: linear-gradient(168deg, rgba(0, 79, 160, 0.65) 0%, rgba(0, 140, 210, 0.28) 52%, rgba(0, 192, 250, 0.12) 100%);
	border-radius: 1.5rem 1.5rem 0 0;
	border: none;
	box-shadow:
		0 -12px 48px rgba(0, 0, 0, 0.42),
		0 0 48px rgba(0, 192, 250, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	z-index: 1;
	pointer-events: none;
}

.ffm-home-upcoming-card__presenter {
	position: relative;
	z-index: 2;
	min-height: min(52vw, 320px);
	height: 100%;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.ffm-home-upcoming-card__presenter-img {
	position: absolute;
	left: 0;
	right: 0;
	top: 0px;
	z-index: 10;
	display: block;
	width: 60%;
	object-fit: cover;
	object-position: center top;
	transform: translateY(-20%) scale(1.5);
	transform-origin: center top;
}

.ffm-home-upcoming-card__body--presenter {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: none;
	min-width: 0;
	padding: 1rem 1.15rem 1.35rem;
	gap: 0.4rem;
	justify-content: flex-start;
	text-align: right;
	border: none;
	pointer-events: none;
}

.ffm-home-upcoming-card__body--presenter :is(a, .ffm-btn) {
	pointer-events: auto;
}

.ffm-home-upcoming-card__body--presenter .ffm-home-upcoming-card__badge {
	align-self: flex-end;
}

.ffm-home-upcoming-card__body--presenter .ffm-home-upcoming-card__title {
	font-size: 1.04rem;
	line-height: 1.28;
	text-align: right;
}

.ffm-home-upcoming-card__by {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ffm-text-soft);
	line-height: 1.35;
	text-align: right;
}

.ffm-home-upcoming-card__body--presenter .ffm-home-upcoming-card__when {
	font-size: 0.8rem;
	margin: 0;
	text-align: right;
}

.ffm-home-upcoming-card__body--presenter .ffm-home-upcoming__cd--compact {
	align-self: flex-end;
	justify-content: flex-end;
	margin-left: auto;
	width: fit-content;
	max-width: 100%;
}

.ffm-home-upcoming__cd--compact {
	min-height: 1.45rem;
	margin-top: 0.15rem;
	padding: 0.28rem 0.45rem;
	gap: 0.25rem 0.4rem;
	font-size: 0.76rem;
	border-radius: 8px;
}

.ffm-home-upcoming__cd--compact .ffm-home-upcoming__cd-num {
	font-size: 0.8rem;
}

.ffm-home-upcoming__cd--compact .ffm-home-upcoming__cd-suffix {
	font-size: 0.6rem;
}

.ffm-home-upcoming__cd--compact .ffm-home-upcoming__cd-soon {
	font-size: 0.76rem;
}

.ffm-home-upcoming-card.has-presenter-layout .ffm-home-upcoming-card__btn {
	align-self: flex-end;
	margin-top: 0.3rem;
	margin-left: auto;
}

.ffm-home-upcoming-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(0, 40, 72, 0.6), rgba(4, 8, 16, 0.95));
}

.ffm-home-upcoming-card__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ffm-home-upcoming-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffm-home-upcoming-card:hover .ffm-home-upcoming-card__img {
	transform: scale(1.05);
}

.ffm-home-upcoming-card__ph-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	border: 2px solid rgba(0, 192, 250, 0.35);
	background: linear-gradient(145deg, rgba(0, 79, 160, 0.35), rgba(0, 192, 250, 0.08));
	box-shadow: 0 0 24px rgba(0, 192, 250, 0.15);
}

.ffm-home-upcoming-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
	padding: 1.15rem 1.2rem 1.35rem;
	text-align: left;
}

.ffm-home-upcoming-card__badge {
	margin: 0;
	align-self: flex-start;
	padding: 0.2rem 0.55rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 192, 250, 0.95);
	border-radius: 6px;
	border: 1px solid rgba(0, 192, 250, 0.35);
	background: rgba(0, 40, 72, 0.45);
}

.ffm-home-upcoming-card.is-event .ffm-home-upcoming-card__badge {
	color: rgba(200, 190, 255, 0.98);
	border-color: rgba(184, 163, 255, 0.4);
	background: rgba(40, 30, 60, 0.4);
}

.ffm-home-upcoming-card__title {
	margin: 0;
	font-family: var(--ffm-font-display);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
}

.ffm-home-upcoming-card__title a {
	color: var(--ffm-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ffm-home-upcoming-card__title a:hover,
.ffm-home-upcoming-card__title a:focus {
	color: var(--ffm-link-hover);
}

.ffm-home-upcoming-card__when {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ffm-muted);
	line-height: 1.4;
}

.ffm-home-upcoming__cd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	min-height: 2.25rem;
	margin-top: 0.15rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	border: 1px solid rgba(0, 192, 250, 0.2);
	background: rgba(0, 12, 28, 0.55);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ffm-text);
}

.ffm-home-upcoming-card.is-event .ffm-home-upcoming__cd {
	border-color: rgba(184, 163, 255, 0.22);
	background: rgba(20, 14, 36, 0.45);
}

.ffm-home-upcoming__cd-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 0.12rem;
}

.ffm-home-upcoming__cd-num {
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

.ffm-home-upcoming__cd-suffix {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ffm-muted);
	opacity: 0.9;
}

.ffm-home-upcoming__cd-soon {
	font-size: 0.92rem;
	font-weight: 700;
	color: rgba(0, 192, 250, 0.95);
}

.ffm-home-upcoming-card.is-event .ffm-home-upcoming__cd-soon {
	color: rgba(200, 190, 255, 0.95);
}

.ffm-home-upcoming-card__btn {
	align-self: flex-start;
	margin-top: auto;
	padding: 0.55rem 1.15rem;
	font-size: 0.875rem;
}

.ffm-home-upcoming-card__btn.ffm-btn.primary.is-registered {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: linear-gradient(135deg, #1fad5c 0%, #0c8c47 100%);
	box-shadow: 0 0 22px rgba(52, 199, 89, 0.42);
}

.ffm-home-upcoming-card__btn.ffm-btn.primary.is-registered:hover,
.ffm-home-upcoming-card__btn.ffm-btn.primary.is-registered:focus {
	filter: brightness(1.06);
	box-shadow: 0 0 30px rgba(52, 199, 89, 0.5);
}

.ffm-home-upcoming-card__btn-ic {
	display: inline-flex;
	line-height: 0;
}

.ffm-home-upcoming-card__btn-ic svg {
	display: block;
	width: 1.05em;
	height: 1.05em;
}

@media (prefers-reduced-motion: reduce) {
	.ffm-home-upcoming-card {
		animation: none;
	}

	.ffm-home-upcoming-card:hover {
		transform: none;
	}

	.ffm-home-upcoming-card:hover .ffm-home-upcoming-card__img {
		transform: none;
	}

}

/* -------------------------------------------------------------------------
   Homepage — upcoming webinar popup (bottom-right)
   ------------------------------------------------------------------------- */

.ffm-upcoming-popup {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 100050;
	width: min(22.5rem, calc(100vw - 2rem));
	pointer-events: none;
	font-family: var(--ffm-font-body);
}

.ffm-upcoming-popup__inner {
	position: relative;
	padding: 3px;
	pointer-events: auto;
}

.ffm-upcoming-popup__rings {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* Outline + offset: expands evenly on all sides (wide cards don’t look “stretched” sideways). */
.ffm-upcoming-popup__ring {
	position: absolute;
	inset: 0;
	border-radius: 25px;
	border: none;
	box-sizing: border-box;
	outline: 3.5px solid rgba(0, 192, 250, 0.92);
	outline-offset: 0;
	/* Easing per segment via keyframes (smoother start, then main pulse). */
	animation: ffm-upcoming-ring 2s infinite;
	will-change: outline-offset, outline-width, opacity;
}

@keyframes ffm-upcoming-ring {
	0% {
		outline-offset: -10px;
		opacity: 0;
		outline-width: 0px;
	}
	10% {
		opacity: 1;
		outline-width: 5px;
	}
	100% {
		outline-offset: 32px;
		opacity: 0;
		outline-width: 0px;
	}
}

.ffm-upcoming-popup__card {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 1rem 2.25rem 1.1rem 1.15rem;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 12, 18, 0.45);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ffm-upcoming-popup__close {
	position: absolute;
	top: 0.4rem;
	right: 0.45rem;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--ffm-muted);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.ffm-upcoming-popup__close:hover,
.ffm-upcoming-popup__close:focus-visible {
	color: var(--ffm-text);
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

.ffm-upcoming-popup__label {
	margin: 0 0 0.5rem;
	font-family: var(--ffm-font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(0, 192, 250, 0.95);
}

.ffm-upcoming-popup__title {
	margin: 0 0 0.65rem;
	font-family: var(--ffm-font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ffm-text);
}

.ffm-upcoming-popup__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 0.85rem;
	margin: 0;
	min-width: 0;
}

.ffm-upcoming-popup__countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	align-content: center;
	gap: 0.3rem 0.45rem;
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	font-family: var(--ffm-font-display);
	font-size: 0.82rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ffm-text-soft);
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.ffm-upcoming-popup__cd-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 0.12rem;
}

.ffm-upcoming-popup__cd-num {
	color: var(--ffm-text);
	font-size: 0.98rem;
	font-weight: 700;
	text-shadow: 0 0 24px rgba(0, 192, 250, 0.2);
}

.ffm-upcoming-popup__cd-suffix {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ffm-muted);
	text-transform: lowercase;
}

.ffm-upcoming-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 192, 250, 0.35);
	background: rgba(0, 192, 250, 0.1);
	color: var(--ffm-link);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ffm-upcoming-popup__cta:hover,
.ffm-upcoming-popup__cta:focus-visible {
	border-color: rgba(0, 192, 250, 0.55);
	background: rgba(0, 192, 250, 0.16);
	color: var(--ffm-link-hover);
	outline: none;
}

@media screen and (max-width: 380px) {
	.ffm-upcoming-popup__row {
		flex-wrap: wrap;
	}

	.ffm-upcoming-popup__cta {
		width: 100%;
		justify-content: center;
	}
}

.ffm-upcoming-popup.is-dismissed {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.ffm-upcoming-popup__ring {
		animation: none;
		opacity: 0.45;
		outline-width: 2px;
		outline-offset: 4px;
	}

	.ffm-upcoming-popup__ring--delay {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Coming soon banner (Introducing Broker page)
   ------------------------------------------------------------------------- */

.ffm-coming-soon {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	border-radius: 18px;
	border: 1px solid rgba(0, 192, 250, 0.24);
	background: linear-gradient(135deg, rgba(0, 79, 160, 0.22), rgba(0, 192, 250, 0.08));
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.ffm-coming-soon__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 192, 250, 0.35);
	background: rgba(0, 192, 250, 0.12);
	color: rgba(0, 192, 250, 0.98);
	font-family: var(--ffm-font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ffm-coming-soon__text {
	min-width: 0;
	color: var(--ffm-text-soft);
	font-size: 0.95rem;
	line-height: 1.55;
}

.ffm-coming-soon__text strong {
	color: var(--ffm-text);
	font-weight: 700;
}
