/* Affiliate LP — isolated styles. Mobile-first, prefix aff-, --aff-* custom props. */
body.affiliate {
	--aff-wrapper-max: 1136px;
	--aff-gutter: 14px;
	--aff-font-body:
		"Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--aff-font-display: var(--aff-font-body);
	--aff-bg: #0a0806;
	--aff-text: #f6efe6;
	--aff-text-muted: #b7ac9d;
	--aff-text-dim: #6d6d6d;
	--aff-accent: #f3981f;
	--aff-accent-2: #ff9242;
	--aff-accent-3: #ffb24d;
	--aff-accent-gradient: linear-gradient(
		180deg,
		#ffc271 0%,
		#ff9242 45%,
		#f37500 100%
	);
	--aff-positive: #5fd693;
	--aff-cta-shadow: 0 10px 30px -8px rgba(255, 138, 30, 0.45);

	margin: 0;
	background: var(--aff-bg);
	color: var(--aff-text);
	font-family: var(--aff-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.affiliate ::selection {
	background: var(--aff-accent);
	color: var(--aff-bg);
}

body.affiliate ::-moz-selection {
	background: var(--aff-accent);
	color: var(--aff-bg);
}

body.affiliate .affiliate-lp *,
body.affiliate .affiliate-lp *::before,
body.affiliate .affiliate-lp *::after {
	box-sizing: border-box;
}

body.affiliate .affiliate-lp img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Zero-specificity scope so component link/heading styles always win. */
:where(body.affiliate .affiliate-lp) a {
	color: inherit;
	text-decoration: none;
}

:where(body.affiliate .affiliate-lp) h1,
:where(body.affiliate .affiliate-lp) h2,
:where(body.affiliate .affiliate-lp) h3 {
	font-family: var(--aff-font-display);
	margin: 0;
	line-height: 1.05;
}

/* Container — override --aff-wrapper-max on a section, never .wrapper directly. */
body.affiliate .wrapper {
	width: 100%;
	max-width: calc(var(--aff-wrapper-max) + var(--aff-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--aff-gutter);
}

/* Section rhythm — sections must not set their own padding-block. */
body.affiliate .aff-section {
	padding-block: 40px;
}

/* Buttons */
body.affiliate .aff-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--aff-font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 13px 22px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

body.affiliate .aff-btn--primary {
	background: var(--aff-accent-gradient);
	color: #1a0f02;
	box-shadow: var(--aff-cta-shadow);
}

body.affiliate .aff-btn--primary span {
	margin-left: 2px;
}

body.affiliate .aff-btn--primary:hover,
body.affiliate .aff-btn--primary:focus-visible {
	background-image: linear-gradient(101.6deg, #ffab3c 0%, #ee8436 100%);
	box-shadow: 0 2px 24px 0 rgba(243, 152, 31, 0.5);
	transform: translateY(-1px);
}

body.affiliate .aff-btn--ghost {
	background: #271809;
	border: 1px solid #332712;
	color: var(--aff-text);
	font-weight: 500;
}

body.affiliate .aff-btn--ghost:hover,
body.affiliate .aff-btn--ghost:focus-visible {
	background:
		linear-gradient(
			92.95deg,
			rgba(255, 171, 60, 0.16) 0%,
			rgba(238, 132, 54, 0.16) 100%
		),
		#271809;
	border-color: rgba(243, 152, 31, 0.45);
	box-shadow: 0 2px 24px 0 rgba(243, 152, 31, 0.18);
	transform: translateY(-1px);
}

body.affiliate .aff-btn--lg {
	padding: 16px 28px;
	border-radius: 10px;
	font-size: 14px;
}

/* Pill badge (section eyebrows). */
body.affiliate .aff-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	border-radius: 100px;
	background: #1e1811;
	color: var(--aff-accent);
	font-size: 8px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 2.16px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Shared section primitives — head, title, lead, inner, feature pills, notes.
   Each is used by several sections; per-section deltas live in their blocks.
   --------------------------------------------------------------------------- */
body.affiliate .aff-commission__head,
body.affiliate .aff-why__head,
body.affiliate .aff-toolkit__head,
body.affiliate .aff-hiw__head,
body.affiliate .aff-faq__head,
body.affiliate .aff-cta__head {
	max-width: 604px;
	margin-inline: auto;
	text-align: center;
}

body.affiliate .aff-commission__head > .aff-badge,
body.affiliate .aff-why__head > .aff-badge,
body.affiliate .aff-toolkit__head > .aff-badge,
body.affiliate .aff-hiw__head > .aff-badge,
body.affiliate .aff-faq__head > .aff-badge,
body.affiliate .aff-cta__head > .aff-badge {
	display: inline-flex;
}

body.affiliate .aff-commission__title,
body.affiliate .aff-why__title,
body.affiliate .aff-toolkit__title,
body.affiliate .aff-hiw__title,
body.affiliate .aff-faq__title,
body.affiliate .aff-cta__title {
	margin: 16px 0 0;
	font-weight: 600;
	font-size: 34px;
	line-height: 1;
	color: var(--aff-text);
}

body.affiliate .aff-commission__lead,
body.affiliate .aff-why__lead,
body.affiliate .aff-toolkit__lead,
body.affiliate .aff-cta__lead {
	font-size: 16px;
	line-height: 1.3;
	color: var(--aff-text-muted);
}

body.affiliate .aff-why__lead,
body.affiliate .aff-cta__lead {
	margin: 16px 0 0;
}

body.affiliate .aff-commission__lead {
	margin: 16px auto 0;
	max-width: 604px;
}

body.affiliate .aff-commission__lead p,
body.affiliate .aff-toolkit__lead p {
	margin: 0;
}

body.affiliate .aff-commission__lead p + p,
body.affiliate .aff-toolkit__lead p + p {
	margin-top: 1.3em;
}

body.affiliate .aff-why__hl,
body.affiliate .aff-toolkit__hl {
	color: var(--aff-text);
}

/* Column-flex inners; hiw/faq/cta also centre their children. */
body.affiliate .aff-why__inner,
body.affiliate .aff-toolkit__inner,
body.affiliate .aff-hiw__inner,
body.affiliate .aff-faq__inner,
body.affiliate .aff-cta__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.affiliate .aff-hiw__inner,
body.affiliate .aff-faq__inner,
body.affiliate .aff-cta__inner {
	align-items: center;
}

/* Feature-pill row — shared by commission and cta. */
body.affiliate .aff-commission__features,
body.affiliate .aff-cta__features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: fit-content;
	margin-inline: auto;
	padding: 18px 36px;
	border-radius: 16px;
	border: 1px solid rgba(255, 170, 60, 0.1);
	background: rgba(255, 255, 255, 0.02);
}

body.affiliate .aff-commission__features {
	align-items: flex-start;
}

body.affiliate .aff-cta__features {
	align-items: center;
}

body.affiliate .aff-commission__feature,
body.affiliate .aff-cta__feature {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-size: 14px;
	color: var(--aff-text-muted);
}

body.affiliate .aff-commission__check,
body.affiliate .aff-cta__check {
	width: 11px;
	height: 7.5px;
	flex-shrink: 0;
	color: var(--aff-positive);
}

/* Closing note under a section — shared by hiw and faq. */
body.affiliate .aff-hiw__note,
body.affiliate .aff-faq__note {
	max-width: 669px;
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	text-align: center;
	color: var(--aff-text-muted);
}

body.affiliate .aff-hiw__note-link,
body.affiliate .aff-faq__note-link {
	color: var(--aff-accent);
	text-decoration: underline;
}

@media (min-width: 992px) {
	body.affiliate {
		--aff-gutter: 20px;
	}

	body.affiliate .aff-section {
		padding-block: 68px 50px;
	}

	body.affiliate .aff-badge {
		font-size: 12px;
	}

	body.affiliate .aff-btn--lg {
		padding: 18px 28px;
		font-size: 16px;
	}

	body.affiliate .aff-commission__title,
	body.affiliate .aff-why__title,
	body.affiliate .aff-toolkit__title,
	body.affiliate .aff-hiw__title,
	body.affiliate .aff-faq__title,
	body.affiliate .aff-cta__title {
		margin-top: 20px;
		font-size: 44px;
	}

	body.affiliate .aff-commission__lead,
	body.affiliate .aff-why__lead,
	body.affiliate .aff-toolkit__lead,
	body.affiliate .aff-cta__lead {
		font-size: 18px;
	}

	body.affiliate .aff-commission__lead,
	body.affiliate .aff-why__lead,
	body.affiliate .aff-cta__lead {
		margin-top: 20px;
	}

	body.affiliate .aff-why__inner,
	body.affiliate .aff-toolkit__inner,
	body.affiliate .aff-hiw__inner,
	body.affiliate .aff-faq__inner,
	body.affiliate .aff-cta__inner {
		gap: 42px;
	}

	body.affiliate .aff-hiw__note,
	body.affiliate .aff-faq__note {
		font-size: 18px;
	}
}

/* ===========================================================================
   Hero
   =========================================================================== */
body.affiliate .aff-hero {
	position: relative;
}

/* Ambient glow — desktop only. Own layer, pulled up so it reads from the
   header, feathered on every edge by a mask so it never cuts off sharply. */
body.affiliate .aff-hero__glow {
	display: none;
}

body.affiliate .aff-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

/* --- Left: intro --- */
body.affiliate .aff-hero__intro > .aff-badge {
	display: flex;
	width: fit-content;
	margin-inline: auto;
}

body.affiliate .aff-hero__title {
	margin: 13px 0 0;
	font-weight: 600;
	font-size: clamp(42px, 11.5vw, 64px);
	line-height: 1;
	text-align: center;
	color: var(--aff-text);
}

body.affiliate .aff-hero__accent {
	background: linear-gradient(90deg, #ffb24d 0%, #ff9242 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

body.affiliate .aff-hero__lead {
	margin: 13px 0 0;
	max-width: 484px;
	font-size: 18px;
	line-height: 1.3;
	text-align: center;
	color: var(--aff-text-muted);
}

body.affiliate .aff-hero__lead strong {
	color: var(--aff-text);
	font-weight: 600;
}

body.affiliate .aff-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-top: 20px;
}

body.affiliate .aff-hero__actions .aff-btn {
	width: 100%;
}

body.affiliate .aff-hero__actions .aff-btn--lg {
	white-space: nowrap;
}

/* --- Right: profile slider --- */
body.affiliate .aff-hero__aside {
	min-width: 0;
}

body.affiliate .aff-hero__slider {
	overflow: hidden;
	border-radius: 22px;
}

body.affiliate .aff-card {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	border: 1px solid #573c19;
	background: linear-gradient(165.9deg, #1c150d 0%, #16110b 100%);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

body.affiliate .aff-card__glow {
	position: absolute;
	inset: -1px;
	pointer-events: none;
	background:
		radial-gradient(
			42% 38% at 86% 16%,
			rgba(224, 90, 0, 0.5) 0%,
			transparent 80%
		),
		radial-gradient(
			49.14% 96.8% at 17.5% -10%,
			rgba(55, 210, 122, 0.16) 0%,
			rgba(55, 210, 122, 0) 70%
		);
}

/* Portrait fills the top-right corner and bleeds off the right edge; the webp
   is pre-mirrored and scaled so the subject (not its margins) reaches the edge. */
body.affiliate .aff-card__photo {
	position: absolute;
	top: 0;
	right: 0;
	width: 58%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

body.affiliate .aff-card__photo img {
	position: absolute;
	top: -3%;
	right: -14%;
	width: 110%;
	height: auto;
	max-width: none;
	/* Fade relative to the image so the bottom always dissolves, whatever the card height. */
	-webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 87%);
	mask-image: linear-gradient(to bottom, #000 50%, transparent 87%);
}

body.affiliate .aff-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 24px 12px 16px;
}

body.affiliate .aff-card__head {
	padding-right: 42%;
}

body.affiliate .aff-card__title {
	display: block;
	font-size: 11px;
	color: var(--aff-text);
	margin-bottom: 20px;
}

body.affiliate .aff-card__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--aff-positive);
}

body.affiliate .aff-card__eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--aff-positive);
	animation: aff-dot-pulse 1.8s ease-out infinite;
}

@keyframes aff-dot-pulse {
	0% {
		opacity: 1;
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(95, 214, 147, 0.5);
	}

	70% {
		opacity: 0.45;
		transform: scale(0.9);
		box-shadow: 0 0 0 10px rgba(95, 214, 147, 0);
	}

	100% {
		opacity: 1;
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(95, 214, 147, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.affiliate .aff-card__eyebrow-dot {
		animation: none;
	}
}

body.affiliate .aff-card__amount {
	margin: 16px 0 0;
	display: flex;
	align-items: flex-end;
	color: var(--aff-positive);
	font-weight: 800;
	line-height: 1;
}

body.affiliate .aff-card__amount-big {
	font-size: 42px;
	letter-spacing: -0.03em;
}

body.affiliate .aff-card__amount-cents {
	font-size: 18px;
	margin-bottom: 5px;
	color: rgba(55, 210, 122, 0.6);
}

body.affiliate .aff-card__panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.affiliate .aff-card__source {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #332712;
	background: rgba(32, 26, 19, 0.6);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

/* Cream circle holds each platform's brand-coloured logo; extras cascade. */
body.affiliate .aff-card__source-icons {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

body.affiliate .aff-card__source-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #f6efe6;
}

body.affiliate .aff-card__source-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Extra sources cascade smaller, bottom-aligned, ringed against the panel. */
body.affiliate .aff-card__source-icon--sm {
	width: 18px;
	height: 18px;
	margin-left: -5px;
	align-self: flex-end;
	box-shadow: 0 0 0 2px #241d14;
}

body.affiliate .aff-card__source-icon--sm svg {
	width: 10px;
	height: 10px;
}

body.affiliate .aff-card__source-icon--sm + .aff-card__source-icon--sm {
	margin-left: -3px;
}

body.affiliate .aff-card__source-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.affiliate .aff-card__source-text strong {
	font-size: 16px;
	font-weight: 600;
	color: var(--aff-text);
}

body.affiliate .aff-card__source-text span {
	font-size: 12px;
	color: var(--aff-text-muted);
}

body.affiliate .aff-card__cells {
	display: flex;
	gap: 10px;
}

body.affiliate .aff-card__cell {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px;
	text-align: center;
	border-radius: 12px;
	border: 1px solid #332712;
	background: rgba(32, 26, 19, 0.6);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

body.affiliate .aff-card__cell-label {
	font-size: 10px;
	color: var(--aff-text-muted);
	white-space: nowrap;
}

body.affiliate .aff-card__cell-value {
	font-size: 14px;
	font-weight: 700;
	color: var(--aff-text);
}

body.affiliate .aff-card__cell-value--pos {
	color: var(--aff-positive);
}

body.affiliate .aff-card__cell-value small {
	font-size: 10px;
	font-weight: 700;
	color: var(--aff-text-dim);
}

/* Dots */
body.affiliate .aff-hero__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
}

body.affiliate .aff-hero__dots .swiper-pagination-bullet {
	position: relative;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 170, 60, 0.28);
	opacity: 1;
	transition:
		width 0.25s ease,
		background 0.25s ease;
}

/* Enlarged hit area around each bullet. */
body.affiliate .aff-hero__dots .swiper-pagination-bullet::before {
	content: "";
	position: absolute;
	inset: -14px -6px;
}

body.affiliate .aff-hero__dots .swiper-pagination-bullet-active {
	width: 18px;
	border-radius: 6px;
	background: var(--aff-accent-3);
}

/* Foot line */
body.affiliate .aff-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 22px;
	margin-top: 22px;
}

body.affiliate .aff-hero__foot .aff-hero__plan {
	margin-left: 0;
}

body.affiliate .aff-hero__foot-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--aff-text-muted);
}

body.affiliate .aff-hero__foot-item::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--aff-accent);
}

body.affiliate .aff-hero__plan {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid #332712;
	background: #17110a;
	font-size: 14px;
	color: var(--aff-text);
	transition:
		border-color 0.2s ease,
		transform 0.2s ease;
}

body.affiliate .aff-hero__plan::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--aff-accent);
}

body.affiliate .aff-hero__plan:hover {
	border-color: rgba(243, 152, 31, 0.45);
	transform: translateY(-1px);
}

@media (min-width: 992px) {
	/* Glow: full-width canvas with percentage positions so it stays centred and
	   proportional at any width; edges feathered by the mask, not clipped. */
	body.affiliate .aff-hero__glow {
		display: block;
		position: absolute;
		top: -120px;
		left: 0;
		right: 0;
		height: 900px;
		z-index: 0;
		pointer-events: none;
		opacity: 0.35;
		background:
			radial-gradient(
				39% 33% at 13% 44%,
				rgba(255, 191, 0, 0.28) 0%,
				transparent 72%
			),
			radial-gradient(
				39% 28% at 50% 68%,
				rgba(255, 191, 0, 0.28) 0%,
				transparent 72%
			),
			radial-gradient(
				51% 52% at 79% 25%,
				rgba(217, 108, 0, 0.28) 0%,
				transparent 72%
			);
		-webkit-mask-image: radial-gradient(
			120% 120% at 50% 40%,
			#000 70%,
			transparent 100%
		);
		mask-image: radial-gradient(
			120% 120% at 50% 40%,
			#000 70%,
			transparent 100%
		);
	}

	body.affiliate .aff-hero > .wrapper {
		position: relative;
		z-index: 1;
	}

	body.affiliate .aff-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		justify-content: space-between;
		gap: 60px;
		align-items: center;
	}

	body.affiliate .aff-hero__actions {
		flex-direction: row;
		flex-wrap: nowrap;
	}

	body.affiliate .aff-hero__actions .aff-btn {
		width: auto;
	}

	body.affiliate .aff-hero__intro > .aff-badge {
		margin-inline: 0;
	}

	body.affiliate .aff-hero__title {
		text-align: left;
	}

	body.affiliate .aff-hero__lead {
		font-size: 20px;
		text-align: left;
	}

	body.affiliate .aff-card__body {
		padding: 30px 28px;
	}

	body.affiliate .aff-card__head {
		padding-right: 44%;
	}

	body.affiliate .aff-card__title {
		font-size: 14px;
		margin-bottom: 46px;
	}

	body.affiliate .aff-card__amount {
		margin-top: 25px;
	}

	body.affiliate .aff-card__eyebrow {
		font-size: 16px;
	}

	body.affiliate .aff-card__eyebrow-dot {
		width: 10px;
		height: 10px;
	}

	body.affiliate .aff-card__amount-big {
		font-size: 52px;
	}

	body.affiliate .aff-card__amount-cents {
		font-size: 22px;
		margin-bottom: 6px;
	}

	body.affiliate .aff-card__panel {
		gap: 10px;
	}

	body.affiliate .aff-card__source {
		padding: 19px 17px;
	}

	body.affiliate .aff-card__source-icon {
		width: 47px;
		height: 47px;
	}

	body.affiliate .aff-card__source-icon svg {
		width: 24px;
		height: 24px;
	}

	body.affiliate .aff-card__source-icon--sm {
		width: 23px;
		height: 23px;
		margin-left: -7px;
	}

	body.affiliate .aff-card__source-icon--sm svg {
		width: 13px;
		height: 13px;
	}

	body.affiliate .aff-card__source-icon--sm + .aff-card__source-icon--sm {
		margin-left: -4px;
	}

	body.affiliate .aff-card__source-text strong {
		font-size: 18px;
	}

	body.affiliate .aff-card__source-text span {
		font-size: 14px;
	}

	body.affiliate .aff-card__cell {
		padding: 17px 8px;
		gap: 11px;
	}

	body.affiliate .aff-card__cell-label {
		font-size: 12px;
	}

	body.affiliate .aff-card__cell-value {
		font-size: 16px;
	}

	body.affiliate .aff-hero__foot {
		justify-content: flex-start;
	}

	body.affiliate .aff-hero__foot .aff-hero__plan {
		margin-left: auto;
	}
}

/* ===========================================================================
   Stats band
   =========================================================================== */
body.affiliate .aff-stats {
	--aff-wrapper-max: 1100px;
}

body.affiliate .aff-stats__head {
	margin-bottom: 28px;
	text-align: center;
}

/* ===========================================================================
   Commission Plan (tier cards + calculator)
   =========================================================================== */
body.affiliate .aff-commission__inner {
	display: flex;
	flex-direction: column;
}

/* Mobile order: head → tiers → calculator → features.
   Desktop reorders features between the tiers and the calculator. */
body.affiliate .aff-commission__head {
	order: 1;
}

body.affiliate .aff-commission__tiers {
	order: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 780px;
	width: 100%;
	margin: 32px auto 0;
}

body.affiliate .aff-calc {
	order: 3;
	margin-top: 32px;
	padding: 28px 10px;
	border-radius: 18px;
	border: 1px solid rgba(255, 170, 60, 0.1);
	background: linear-gradient(180deg, #1c150d 0%, #141313 100%);
}

body.affiliate .aff-commission__features {
	order: 4;
	margin-top: 32px;
}

/* --- Tier cards --- */
body.affiliate .aff-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 20px 16px 26px;
	border-radius: 16px;
	border: 1px solid #2c1f0f;
	background:
		radial-gradient(
			120% 62% at 0% -8%,
			rgba(243, 152, 31, 0.16) 0%,
			transparent 58%
		),
		linear-gradient(156.9deg, #1c150d 2.78%, #16110b 98.43%);
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

body.affiliate .aff-tier:hover {
	transform: translateY(-2px);
	border-color: rgba(243, 152, 31, 0.5);
}

body.affiliate .aff-tier--top {
	border-color: #8d5b1a;
	background: #312012;
}

body.affiliate .aff-tier.is-active {
	border-color: #ff8a1e;
	box-shadow: 0 0 0 1px rgba(255, 138, 30, 0.4);
}

body.affiliate .aff-tier__badge {
	position: absolute;
	top: -11px;
	right: 14px;
	display: inline-flex;
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--aff-accent-2);
	color: #0a0a0a;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 1px;
}

body.affiliate .aff-tier__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding-bottom: 4px;
}

body.affiliate .aff-tier__name {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--aff-text-muted);
}

body.affiliate .aff-tier__pct {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	color: var(--aff-accent);
}

body.affiliate .aff-tier__ltv {
	font-size: 12px;
	color: var(--aff-text-muted);
}

body.affiliate .aff-tier__per {
	padding: 6px 2px;
	border-radius: 6px;
	border: 1px solid #39230e;
	background: #1f170e;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	color: var(--aff-positive);
}

body.affiliate .aff-tier__per strong {
	font-size: 24px;
	font-weight: 700;
}

body.affiliate .aff-tier__perks {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--aff-text-muted);
}

body.affiliate .aff-tier__perk {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

body.affiliate .aff-tier__perk::before {
	content: "";
	flex: none;
	width: 4px;
	height: 4px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--aff-accent);
}

body.affiliate .aff-tier--vip {
	grid-column: 1 / -1;
	color: inherit;
	text-decoration: none;
}

/* --- Calculator --- */
body.affiliate .aff-calc__grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.affiliate .aff-calc__controls {
	display: flex;
	flex-direction: column;
	gap: 42px;
}

body.affiliate .aff-calc__field {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.affiliate .aff-calc__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	color: var(--aff-text-muted);
}

body.affiliate .aff-calc__value,
body.affiliate .aff-calc__tier-name {
	color: var(--aff-accent-3);
}

/* Range slider — filled portion driven by --aff-range-fill (set from JS). The
   input holds the 22px thumb; the runnable track carries the 6px bar + fill. */
body.affiliate .aff-calc__range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 22px;
	background: transparent;
	cursor: pointer;
}

body.affiliate .aff-calc__range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		#ffb24d 0%,
		#ff8a1e var(--aff-range-fill, 10%),
		rgba(255, 255, 255, 0.1) var(--aff-range-fill, 10%),
		rgba(255, 255, 255, 0.1) 100%
	);
}

body.affiliate .aff-calc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border-radius: 50%;
	border: 2px solid #1a0f02;
	background: linear-gradient(160deg, #ffc36a 0%, #ff8a1e 100%);
	box-shadow: 0 4px 12px -2px rgba(255, 138, 30, 0.45);
	cursor: pointer;
}

body.affiliate .aff-calc__range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
}

body.affiliate .aff-calc__range::-moz-range-progress {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ffb24d 0%, #ff8a1e 100%);
}

body.affiliate .aff-calc__range::-moz-range-thumb {
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #1a0f02;
	background: linear-gradient(160deg, #ffc36a 0%, #ff8a1e 100%);
	box-shadow: 0 4px 12px -2px rgba(255, 138, 30, 0.45);
	cursor: pointer;
}

body.affiliate .aff-calc__range:focus-visible {
	outline: 2px solid rgba(255, 138, 30, 0.6);
	outline-offset: 6px;
}

/* Tier buttons */
body.affiliate .aff-calc__buttons {
	display: flex;
	gap: 8px;
}

body.affiliate .aff-calc__btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 8px;
	border-radius: 11px;
	border: 1px solid rgba(255, 170, 60, 0.1);
	background: rgba(255, 255, 255, 0.03);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--aff-text-muted);
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}

body.affiliate .aff-calc__btn:hover {
	border-color: rgba(255, 138, 30, 0.5);
}

body.affiliate .aff-calc__btn.is-active {
	border-color: #ff8a1e;
	background: rgba(255, 138, 30, 0.12);
	color: var(--aff-accent-3);
}

/* Result card */
body.affiliate .aff-calc__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 24px 16px;
	border-radius: 18px;
	border: 1px solid rgba(255, 170, 60, 0.28);
	background: radial-gradient(
		120% 42% at 50% 0%,
		rgba(255, 138, 30, 0.16) 0%,
		transparent 65%
	);
	text-align: center;
}

body.affiliate .aff-calc__result-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 100%;
}

body.affiliate .aff-calc__result-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
	width: 100%;
}

body.affiliate .aff-calc__result-label {
	max-width: 270px;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #8a8071;
}

body.affiliate .aff-calc__result-value {
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	color: var(--aff-accent-3);
}

body.affiliate .aff-calc__notes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	color: var(--aff-text-muted);
}

body.affiliate .aff-calc__notes p {
	margin: 0;
}

body.affiliate .aff-calc__note-strong {
	font-weight: 600;
	color: var(--aff-text);
}

body.affiliate .aff-calc__note-pos {
	font-weight: 600;
	color: var(--aff-positive);
}

body.affiliate .aff-calc__note-accent {
	font-weight: 600;
	color: var(--aff-accent-3);
}

body.affiliate .aff-calc__cta {
	width: auto;
	border-radius: 10px;
	font-size: 14px;
	padding: 16px 44px;
}

body.affiliate .aff-calc__disclaimer {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.3;
	color: var(--aff-text-muted);
}

@media (min-width: 992px) {
	body.affiliate .aff-commission__tiers {
		max-width: 980px;
		margin-top: 42px;
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	body.affiliate .aff-tier--vip {
		grid-column: auto;
	}

	body.affiliate .aff-commission__features {
		order: 3;
		margin-top: 22px;
		flex-direction: row;
		align-items: center;
		gap: 33px;
		padding: 23px 36px;
	}

	body.affiliate .aff-calc {
		order: 4;
		margin-top: 42px;
		padding: 28px 33px;
	}

	body.affiliate .aff-calc__grid {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	body.affiliate .aff-calc__controls {
		flex: 1 1 0;
		min-width: 0;
		gap: 48px;
	}

	body.affiliate .aff-calc__result {
		flex: 0 0 460px;
		max-width: 460px;
		padding: 24px 27px;
	}

	body.affiliate .aff-calc__result-label {
		max-width: none;
		font-size: 13px;
	}

	body.affiliate .aff-calc__cta {
		width: 100%;
		font-size: 16px;
		padding: 20px 28px;
	}

	body.affiliate .aff-calc__disclaimer {
		text-align: justify;
	}
}

/* ===========================================================================
   Why TraderScale Converts (proof cards + checklist panel)
   =========================================================================== */
/* --- Proof cards --- */
body.affiliate .aff-why__cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.affiliate .aff-why__card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 14px 18px;
	border-radius: 18px;
	border: 1px solid #2c1f0f;
	background: linear-gradient(
		165deg,
		rgba(28, 21, 13, 0.7) 0%,
		rgba(22, 17, 11, 0.7) 100%
	);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

body.affiliate .aff-why__card:hover {
	transform: translateY(-3px);
	border-color: rgba(243, 152, 31, 0.4);
	box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}

body.affiliate .aff-why__card-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

body.affiliate .aff-why__card:first-child .aff-why__card-head {
	gap: 16px;
}

body.affiliate .aff-why__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 12px;
	border: 1px solid rgba(243, 152, 31, 0.3);
	background: linear-gradient(
		160deg,
		rgba(243, 152, 31, 0.22) 0%,
		rgba(243, 152, 31, 0.05) 100%
	);
	color: var(--aff-accent);
}

body.affiliate .aff-why__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

body.affiliate .aff-why__card-title {
	margin: 0;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
	text-align: center;
	color: var(--aff-text);
}

body.affiliate .aff-why__card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--aff-text-muted);
}

body.affiliate .aff-why__card--center .aff-why__card-desc {
	text-align: center;
}

body.affiliate .aff-why__card--left .aff-why__card-desc {
	text-align: left;
}

/* --- Checklist panel --- */
body.affiliate .aff-why__panel {
	padding: 32px 16px 37px;
	border-radius: 24px;
	border: 1px solid #2c2217;
	background:
		radial-gradient(
			78% 32% at 5% -4%,
			rgba(55, 210, 122, 0.16) 0%,
			transparent 70%
		),
		linear-gradient(160deg, #161108 8%, #100d09 88%);
	box-shadow: 0 24px 35px rgba(0, 0, 0, 0.55);
}

body.affiliate .aff-why__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	text-align: center;
	color: #fda154;
}

/* Single grid so both columns share row heights and dividers line up. */
body.affiliate .aff-why__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
}

body.affiliate .aff-why__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 19px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* One-line items centre in their taller row; multi-line stay top-aligned. */
body.affiliate .aff-why__item--center {
	align-items: center;
}

/* Last item of column one — no divider under it. */
body.affiliate .aff-why__item--col-end {
	border-bottom: 0;
}

body.affiliate .aff-why__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid rgba(55, 210, 122, 0.4);
	background: rgba(55, 210, 122, 0.14);
	color: #37d27a;
}

body.affiliate .aff-why__check svg {
	width: 12px;
	height: 10px;
	display: block;
}

body.affiliate .aff-why__item-text {
	font-size: 16px;
	line-height: 1.3;
	color: #c9c5bf;
}

body.affiliate .aff-why__item-text strong {
	font-weight: 700;
	color: var(--aff-text);
}

body.affiliate .aff-why__note {
	list-style: none;
	padding-top: 32px;
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	color: #8d897f;
}

body.affiliate .aff-why__note-link {
	font-weight: 600;
	color: #fda154;
	white-space: nowrap;
}

@media (min-width: 992px) {
	body.affiliate .aff-why__cards {
		flex-direction: row;
		align-items: stretch;
		gap: 46px;
	}

	body.affiliate .aff-why__card {
		flex: 1 1 0;
		min-width: 0;
		gap: 24px;
		padding: 24px 28px;
	}

	body.affiliate .aff-why__card-head {
		align-items: flex-start;
	}

	body.affiliate .aff-why__card-title {
		text-align: left;
	}

	body.affiliate .aff-why__card--center .aff-why__card-desc,
	body.affiliate .aff-why__card--left .aff-why__card-desc {
		text-align: left;
	}

	body.affiliate .aff-why__panel {
		padding: 59px 44px 50px;
	}

	body.affiliate .aff-why__eyebrow {
		margin-bottom: 32px;
		text-align: left;
	}

	/* Two columns filled top-to-bottom (col1 = items 1–4, col2 = 5–7 + note);
	   grid rows equalise both columns' heights so dividers align. */
	body.affiliate .aff-why__list {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(4, auto);
		grid-auto-flow: column;
		column-gap: 58px;
	}

	body.affiliate .aff-why__item {
		gap: 16px;
	}

	body.affiliate .aff-why__note {
		padding-left: 43px;
	}
}

/* ===========================================================================
   Partner Toolkit (intro copy + pill grid)
   =========================================================================== */
body.affiliate .aff-toolkit {
	--aff-wrapper-max: 1034px;
}

body.affiliate .aff-toolkit__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.affiliate .aff-toolkit__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

body.affiliate .aff-toolkit__pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px;
	border-radius: 10px;
	border: 1px solid #2b1f0f;
	background: #14100b;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

body.affiliate .aff-toolkit__pill:hover {
	transform: translateY(-2px);
	border-color: rgba(243, 152, 31, 0.4);
	background: #1a140c;
}

body.affiliate .aff-toolkit__dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 3.5px;
	background: var(--aff-accent-3);
}

body.affiliate .aff-toolkit__pill-text {
	font-size: 14px;
	color: var(--aff-text);
}

@media (min-width: 992px) {
	body.affiliate .aff-toolkit__body {
		flex-direction: row;
		align-items: flex-start;
		gap: 63px;
	}

	body.affiliate .aff-toolkit__lead {
		flex: 0 0 415px;
	}

	body.affiliate .aff-toolkit__grid {
		flex: 1 1 auto;
		grid-template-columns: 1fr 1fr;
	}

	body.affiliate .aff-toolkit__pill {
		padding: 10px;
	}
}

/* ===========================================================================
   How It Works (numbered step cards + note + CTA)
   =========================================================================== */
body.affiliate .aff-hiw {
	--aff-wrapper-max: 980px;
}

body.affiliate .aff-hiw__cards {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

body.affiliate .aff-hiw__card {
	display: flex;
	min-height: 106px;
	padding: 16px 12px;
	border-radius: 16px;
	border: 1px solid #2c1f0f;
	background:
		radial-gradient(
			120% 42% at 0% -5%,
			rgba(243, 152, 31, 0.16) 0%,
			transparent 60%
		),
		linear-gradient(164deg, #1c150d 0%, #16110b 100%);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

body.affiliate .aff-hiw__card:hover {
	transform: translateY(-3px);
	border-color: rgba(243, 152, 31, 0.4);
	box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}

body.affiliate .aff-hiw__card--wide {
	grid-column: 1 / -1;
	justify-content: center;
	padding: 20px 16px;
}

body.affiliate .aff-hiw__card-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 4px;
}

body.affiliate .aff-hiw__card--wide .aff-hiw__card-inner {
	align-items: center;
	max-width: 268px;
	text-align: center;
}

body.affiliate .aff-hiw__card-num {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--aff-accent);
}

body.affiliate .aff-hiw__card-desc {
	margin: 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--aff-text-muted);
}

body.affiliate .aff-hiw__cta {
	padding: 16px 44px;
	border-radius: 10px;
	font-size: 14px;
}

@media (min-width: 992px) {
	body.affiliate .aff-hiw__cards {
		grid-template-columns: repeat(5, 1fr);
		gap: 16px;
	}

	body.affiliate .aff-hiw__card {
		padding: 20px 16px;
	}

	body.affiliate .aff-hiw__card--wide {
		grid-column: auto;
		justify-content: flex-start;
	}

	body.affiliate .aff-hiw__card--wide .aff-hiw__card-inner {
		align-items: flex-start;
		max-width: none;
		text-align: left;
	}

	body.affiliate .aff-hiw__cta {
		padding: 20px 44px;
		font-size: 16px;
	}
}

/* ===========================================================================
   FAQ (global ts-faq accordion + head/note)
   =========================================================================== */
body.affiliate .aff-faq .ts-faq {
	width: 100%;
}

/* ===========================================================================
   Become a Partner (closing CTA)
   =========================================================================== */
body.affiliate .aff-cta {
	--aff-wrapper-max: 640px;
}

body.affiliate .aff-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 11px;
	width: 100%;
}

body.affiliate .aff-cta__btn {
	width: 100%;
	max-width: 340px;
	padding: 16px 28px;
	border-radius: 10px;
	font-size: 14px;
}

@media (min-width: 992px) {
	body.affiliate .aff-cta__actions {
		flex-direction: row;
		justify-content: center;
		width: auto;
	}

	body.affiliate .aff-cta__btn {
		width: auto;
		max-width: none;
		padding: 20px 28px;
		font-size: 16px;
	}

	body.affiliate .aff-cta__btn--primary {
		padding: 20px 40px;
	}

	body.affiliate .aff-cta__features {
		width: 100%;
		flex-direction: row;
		justify-content: center;
		gap: 33px;
		padding: 23px 36px;
	}
}

/* ===========================================================================
   Social bar (global component)
   =========================================================================== */
/* Last section — keep the top rhythm, wider 100px gap to the footer. */
body.affiliate .aff-social {
	padding-bottom: 100px;
}

body.affiliate .aff-social__inner {
	display: flex;
	justify-content: center;
}

/* ===========================================================================
   Scroll reveal — sections fade in on scroll (opacity only, so backdrop-filter
   and sticky layers stay put). .aff-anim-ready is set on <body> by JS only when
   motion is allowed; without it nothing hides (progressive enhancement).
   =========================================================================== */
body.affiliate.aff-anim-ready .aff-section:not(.aff-hero) > .wrapper {
	opacity: 0;
	transition: opacity 0.7s ease;
}

body.affiliate.aff-anim-ready .aff-section.is-inview > .wrapper {
	opacity: 1;
}
