/**
 * Unlimited Flatsome — Creative Boxes Pack (v2.0)
 * 1. UF Hover Reveal Box (.ufl-hrb — 4 variants: slide-up, fade-zoom, curtain-split, blur-focus)
 * 2. UF Caption Box (.ufl-cap — 4 variants: push-up, slide-cover, corner-fold, glass-bar)
 * 3. UF Animated Border Box (.ufl-abb — 4 variants: conic-spin, neon-trace, corner-draw, pulse-glow)
 * 100% Design Tokens (--ufl-*). Zero hardcoded brand blues.
 */

/* ==========================================================================
   1. UF Hover Reveal Box (.ufl-hrb)
   ========================================================================== */
.ufl-hrb {
	--ufl-hrb-h: 340px;
	--ufl-hrb-radius: var(--ufl-r-lg);
	--ufl-hrb-accent: var(--ufl-primary);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: var(--ufl-hrb-h);
	border-radius: var(--ufl-hrb-radius);
	overflow: hidden;
	isolation: isolate;
	color: #ffffff;
	background:
		radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--ufl-hrb-accent) 68%, transparent) 0%, transparent 55%),
		radial-gradient(circle at 18% 85%, color-mix(in srgb, var(--ufl-secondary) 46%, transparent) 0%, transparent 52%),
		linear-gradient(145deg, color-mix(in srgb, var(--ufl-hrb-accent) 42%, #0f172a), #0b1220);
	box-shadow: var(--ufl-shadow-md);
	cursor: pointer;
	transition:
		transform var(--ufl-dur-slow) var(--ufl-ease),
		box-shadow var(--ufl-dur-slow) var(--ufl-ease);
}

.ufl-hrb:hover,
.ufl-hrb:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--ufl-shadow-lg);
}

.ufl-hrb__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.ufl-hrb__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transform: scale(1.001);
	transition:
		transform 0.62s var(--ufl-ease),
		filter 0.52s var(--ufl-ease);
}

.ufl-hrb__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition:
		opacity 0.45s var(--ufl-ease),
		background 0.45s var(--ufl-ease),
		backdrop-filter 0.45s var(--ufl-ease);
}

.ufl-hrb__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 1.65rem 1.55rem;
	width: 100%;
	transition: transform 0.46s var(--ufl-ease), opacity 0.42s var(--ufl-ease);
}

.ufl-hrb__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.7rem;
}

.ufl-hrb__icon {
	display: inline-grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: var(--ufl-r-md);
	background: color-mix(in srgb, var(--ufl-hrb-accent) 85%, #ffffff 15%);
	color: #ffffff;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ufl-hrb-accent) 75%, #000);
	transition: transform 0.4s var(--ufl-ease), background-color 0.35s var(--ufl-ease);
}

.ufl-hrb__icon svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: currentColor;
}

.ufl-hrb__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.26rem 0.7rem;
	border-radius: var(--ufl-r-pill);
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
}

.ufl-hrb__title {
	margin: 0;
	font-size: 1.32rem;
	font-weight: 800;
	line-height: 1.24;
	letter-spacing: -0.015em;
	color: #ffffff;
	text-shadow: 0 2px 12px rgba(15, 23, 42, 0.35);
}

.ufl-hrb__reveal {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition:
		grid-template-rows 0.46s var(--ufl-ease),
		opacity 0.38s var(--ufl-ease),
		transform 0.46s var(--ufl-ease);
}

.ufl-hrb__reveal-inner {
	overflow: hidden;
	min-height: 0;
}

.ufl-hrb__text {
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(248, 250, 252, 0.92);
}

.ufl-hrb__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1rem;
	padding: 0.58rem 1.2rem;
	border-radius: var(--ufl-r-pill);
	background: #ffffff;
	color: #0f172a !important;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.45);
	transition:
		transform var(--ufl-dur) var(--ufl-ease),
		background-color var(--ufl-dur) var(--ufl-ease),
		color var(--ufl-dur) var(--ufl-ease);
}

.ufl-hrb__btn:hover {
	background: var(--ufl-hrb-accent);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.ufl-hrb__btn-arrow {
	display: inline-block;
	transition: transform var(--ufl-dur) var(--ufl-ease);
}

.ufl-hrb__btn:hover .ufl-hrb__btn-arrow {
	transform: translateX(3px);
}

/* Variant 1: Slide Up */
.ufl-hrb--slide-up .ufl-hrb__scrim {
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.08) 0%,
		rgba(15, 23, 42, 0.34) 48%,
		rgba(15, 23, 42, 0.88) 100%
	);
}

.ufl-hrb--slide-up:hover .ufl-hrb__scrim,
.ufl-hrb--slide-up:focus-within .ufl-hrb__scrim {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--ufl-hrb-accent) 24%, rgba(15, 23, 42, 0.22)) 0%,
		rgba(15, 23, 42, 0.76) 45%,
		rgba(15, 23, 42, 0.94) 100%
	);
}

.ufl-hrb--slide-up:hover .ufl-hrb__img,
.ufl-hrb--slide-up:focus-within .ufl-hrb__img {
	transform: scale(1.08);
}

.ufl-hrb--slide-up .ufl-hrb__reveal {
	transform: translateY(14px);
}

.ufl-hrb--slide-up:hover .ufl-hrb__reveal,
.ufl-hrb--slide-up:focus-within .ufl-hrb__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
	transform: translateY(0);
}

.ufl-hrb--slide-up:hover .ufl-hrb__icon,
.ufl-hrb--slide-up:focus-within .ufl-hrb__icon {
	transform: scale(1.06);
}

/* Variant 2: Fade Zoom (Frosted centered reveal) */
.ufl-hrb--fade-zoom {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.ufl-hrb--fade-zoom .ufl-hrb__scrim {
	background: radial-gradient(
		circle at center,
		rgba(15, 23, 42, 0.25) 0%,
		rgba(15, 23, 42, 0.65) 100%
	);
}

.ufl-hrb--fade-zoom:hover .ufl-hrb__scrim,
.ufl-hrb--fade-zoom:focus-within .ufl-hrb__scrim {
	background: color-mix(in srgb, var(--ufl-hrb-accent) 72%, rgba(15, 23, 42, 0.82));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.ufl-hrb--fade-zoom .ufl-hrb__content {
	align-items: center;
	transform: scale(0.94);
}

.ufl-hrb--fade-zoom:hover .ufl-hrb__content,
.ufl-hrb--fade-zoom:focus-within .ufl-hrb__content {
	transform: scale(1);
}

.ufl-hrb--fade-zoom .ufl-hrb__head {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ufl-hrb--fade-zoom .ufl-hrb__meta {
	justify-content: center;
}

.ufl-hrb--fade-zoom .ufl-hrb__reveal {
	transform: scale(0.94);
}

.ufl-hrb--fade-zoom:hover .ufl-hrb__reveal,
.ufl-hrb--fade-zoom:focus-within .ufl-hrb__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
	transform: scale(1);
}

.ufl-hrb--fade-zoom:hover .ufl-hrb__img,
.ufl-hrb--fade-zoom:focus-within .ufl-hrb__img {
	transform: scale(1.06);
}

/* Variant 3: Curtain Split */
.ufl-hrb--curtain-split {
	justify-content: center;
	align-items: center;
	text-align: center;
}

.ufl-hrb--curtain-split .ufl-hrb__scrim {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.62));
}

.ufl-hrb--curtain-split::before,
.ufl-hrb--curtain-split::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 51%;
	z-index: 2;
	background: color-mix(in srgb, var(--ufl-hrb-accent) 52%, rgba(15, 23, 42, 0.88));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	pointer-events: none;
	transition: transform 0.52s var(--ufl-ease), opacity 0.45s var(--ufl-ease);
}

.ufl-hrb--curtain-split::before {
	top: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	transform: translateY(-102%);
	opacity: 0;
}

.ufl-hrb--curtain-split::after {
	bottom: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	transform: translateY(102%);
	opacity: 0;
}

.ufl-hrb--curtain-split:hover::before,
.ufl-hrb--curtain-split:focus-within::before,
.ufl-hrb--curtain-split:hover::after,
.ufl-hrb--curtain-split:focus-within::after {
	transform: translateY(0);
	opacity: 0.96;
}

.ufl-hrb--curtain-split .ufl-hrb__head {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ufl-hrb--curtain-split .ufl-hrb__content {
	align-items: center;
}

.ufl-hrb--curtain-split .ufl-hrb__content::before,
.ufl-hrb--curtain-split .ufl-hrb__content::after {
	content: "";
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: scaleX(0);
	transition: transform 0.5s var(--ufl-ease) 0.08s;
}

.ufl-hrb--curtain-split .ufl-hrb__content::before { top: 0.65rem; }
.ufl-hrb--curtain-split .ufl-hrb__content::after { bottom: 0.65rem; }

.ufl-hrb--curtain-split:hover .ufl-hrb__content::before,
.ufl-hrb--curtain-split:focus-within .ufl-hrb__content::before,
.ufl-hrb--curtain-split:hover .ufl-hrb__content::after,
.ufl-hrb--curtain-split:focus-within .ufl-hrb__content::after {
	transform: scaleX(1);
}

.ufl-hrb--curtain-split:hover .ufl-hrb__reveal,
.ufl-hrb--curtain-split:focus-within .ufl-hrb__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ufl-hrb--curtain-split:hover .ufl-hrb__img,
.ufl-hrb--curtain-split:focus-within .ufl-hrb__img {
	transform: scale(1.07);
}

/* Variant 4: Blur Focus */
.ufl-hrb--blur-focus .ufl-hrb__scrim {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 25%, rgba(15, 23, 42, 0.78) 100%);
}

.ufl-hrb--blur-focus:hover .ufl-hrb__scrim,
.ufl-hrb--blur-focus:focus-within .ufl-hrb__scrim {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.ufl-hrb--blur-focus:hover .ufl-hrb__img,
.ufl-hrb--blur-focus:focus-within .ufl-hrb__img {
	filter: blur(7px) saturate(1.12);
	transform: scale(1.09);
}

.ufl-hrb--blur-focus .ufl-hrb__content {
	transform: translateY(4px);
}

.ufl-hrb--blur-focus:hover .ufl-hrb__content,
.ufl-hrb--blur-focus:focus-within .ufl-hrb__content {
	transform: translateY(-4px);
}

.ufl-hrb--blur-focus .ufl-hrb__reveal {
	transform: translateY(10px) scale(0.97);
}

.ufl-hrb--blur-focus:hover .ufl-hrb__reveal,
.ufl-hrb--blur-focus:focus-within .ufl-hrb__reveal {
	grid-template-rows: 1fr;
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ==========================================================================
   2. UF Caption Box (.ufl-cap)
   ========================================================================== */
.ufl-cap {
	--ufl-cap-radius: var(--ufl-r-lg);
	--ufl-cap-accent: var(--ufl-primary);
	position: relative;
	margin: 0;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--ufl-cap-radius);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--ufl-cap-accent) 62%, transparent), transparent 55%),
		radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--ufl-secondary) 44%, transparent), transparent 55%),
		linear-gradient(135deg, #1e293b, #0f172a);
	box-shadow: var(--ufl-shadow-md);
	cursor: pointer;
	transition: box-shadow var(--ufl-dur-slow) var(--ufl-ease), transform var(--ufl-dur-slow) var(--ufl-ease);
}

.ufl-cap--ratio-4x3 { aspect-ratio: 4 / 3; }
.ufl-cap--ratio-16x9 { aspect-ratio: 16 / 9; }
.ufl-cap--ratio-1x1 { aspect-ratio: 1 / 1; }
.ufl-cap--ratio-3x4 { aspect-ratio: 3 / 4; }

.ufl-cap:hover,
.ufl-cap:focus-within {
	box-shadow: var(--ufl-shadow-lg);
}

.ufl-cap__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	transition: transform 0.52s var(--ufl-ease);
}

.ufl-cap__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s var(--ufl-ease);
}

.ufl-cap__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.72rem;
	border-radius: var(--ufl-r-pill);
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: opacity 0.35s var(--ufl-ease), transform 0.35s var(--ufl-ease);
}

.ufl-cap__dock {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 1.15rem 1.35rem;
	transition:
		transform 0.46s var(--ufl-ease),
		background-color 0.42s var(--ufl-ease),
		inset 0.48s var(--ufl-ease),
		padding 0.42s var(--ufl-ease),
		box-shadow 0.42s var(--ufl-ease);
}

.ufl-cap__subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ufl-cap-accent);
	margin-bottom: 0.22rem;
}

.ufl-cap__title {
	margin: 0;
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--ufl-ink-strong);
}

.ufl-cap__extra {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition:
		grid-template-rows 0.44s var(--ufl-ease),
		opacity 0.36s var(--ufl-ease);
}

.ufl-cap__extra-inner {
	overflow: hidden;
	min-height: 0;
}

.ufl-cap__text {
	margin: 0.55rem 0 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ufl-ink-muted);
}

.ufl-cap__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.72rem;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--ufl-cap-accent) !important;
	text-decoration: none;
	transition: gap var(--ufl-dur) var(--ufl-ease);
}

.ufl-cap__link:hover {
	gap: 0.6rem;
}

.ufl-cap__arrow {
	display: inline-block;
	transition: transform var(--ufl-dur) var(--ufl-ease);
}

.ufl-cap__link:hover .ufl-cap__arrow {
	transform: translateX(2px);
}

/* Variant 1: Push Up */
.ufl-cap--push-up .ufl-cap__dock {
	background: var(--ufl-surface);
	border-top: 3px solid var(--ufl-cap-accent);
	box-shadow: 0 -8px 24px -10px rgba(15, 23, 42, 0.18);
}

.ufl-cap--push-up:hover .ufl-cap__media,
.ufl-cap--push-up:focus-within .ufl-cap__media {
	transform: translateY(-36px);
}

.ufl-cap--push-up:hover .ufl-cap__img,
.ufl-cap--push-up:focus-within .ufl-cap__img {
	transform: scale(1.04);
}

.ufl-cap--push-up:hover .ufl-cap__extra,
.ufl-cap--push-up:focus-within .ufl-cap__extra {
	grid-template-rows: 1fr;
	opacity: 1;
}

/* Variant 2: Slide Cover */
.ufl-cap--slide-cover .ufl-cap__dock {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 82px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ufl-cap-accent) 94%, #0f172a), color-mix(in srgb, var(--ufl-cap-accent) 64%, #0f172a));
	color: #ffffff;
}

.ufl-cap--slide-cover .ufl-cap__subtitle {
	color: rgba(255, 255, 255, 0.78);
}

.ufl-cap--slide-cover .ufl-cap__title,
.ufl-cap--slide-cover .ufl-cap__text,
.ufl-cap--slide-cover .ufl-cap__link {
	color: #ffffff !important;
}

.ufl-cap--slide-cover .ufl-cap__text {
	opacity: 0.92;
}

.ufl-cap--slide-cover .ufl-cap__link {
	padding: 0.45rem 0.95rem;
	border-radius: var(--ufl-r-pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.34);
}

.ufl-cap--slide-cover .ufl-cap__link:hover {
	background: #ffffff;
	color: #0f172a !important;
}

.ufl-cap--slide-cover:hover .ufl-cap__dock,
.ufl-cap--slide-cover:focus-within .ufl-cap__dock {
	min-height: 100%;
	justify-content: center;
	padding: 1.75rem 1.55rem;
	background: linear-gradient(
		140deg,
		color-mix(in srgb, var(--ufl-cap-accent) 92%, #0f172a 8%),
		color-mix(in srgb, var(--ufl-secondary) 55%, #0f172a 45%)
	);
}

.ufl-cap--slide-cover:hover .ufl-cap__badge,
.ufl-cap--slide-cover:focus-within .ufl-cap__badge {
	opacity: 0;
	transform: translateY(-6px);
}

.ufl-cap--slide-cover:hover .ufl-cap__extra,
.ufl-cap--slide-cover:focus-within .ufl-cap__extra {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ufl-cap--slide-cover:hover .ufl-cap__img,
.ufl-cap--slide-cover:focus-within .ufl-cap__img {
	transform: scale(1.08);
}

/* Variant 3: Corner Fold */
.ufl-cap--corner-fold .ufl-cap__dock {
	left: 14px;
	right: 22%;
	bottom: 14px;
	padding: 1rem 1.2rem 1rem 1.35rem;
	border-radius: calc(max(var(--ufl-cap-radius) - 4px, 8px));
	background: var(--ufl-surface);
	box-shadow: var(--ufl-shadow-md);
	overflow: hidden;
}

.ufl-cap--corner-fold .ufl-cap__dock::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--ufl-cap-accent), var(--ufl-secondary));
	transition: width 0.35s var(--ufl-ease);
}

.ufl-cap--corner-fold .ufl-cap__dock::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 24px;
	height: 24px;
	background: linear-gradient(225deg, color-mix(in srgb, var(--ufl-cap-accent) 22%, transparent) 50%, transparent 50%);
	transition: width 0.38s var(--ufl-ease), height 0.38s var(--ufl-ease);
}

.ufl-cap--corner-fold:hover .ufl-cap__dock,
.ufl-cap--corner-fold:focus-within .ufl-cap__dock {
	right: 14px;
	padding: 1.2rem 1.35rem 1.2rem 1.45rem;
	box-shadow: var(--ufl-shadow-lg);
}

.ufl-cap--corner-fold:hover .ufl-cap__dock::after,
.ufl-cap--corner-fold:focus-within .ufl-cap__dock::after {
	width: 34px;
	height: 34px;
}

.ufl-cap--corner-fold:hover .ufl-cap__extra,
.ufl-cap--corner-fold:focus-within .ufl-cap__extra {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ufl-cap--corner-fold:hover .ufl-cap__img,
.ufl-cap--corner-fold:focus-within .ufl-cap__img {
	transform: scale(1.07);
}

/* Variant 4: Glass Bar */
.ufl-cap--glass-bar .ufl-cap__dock {
	left: 12px;
	right: 12px;
	bottom: 12px;
	border-radius: calc(max(var(--ufl-cap-radius) - 4px, 8px));
	background: rgba(15, 23, 42, 0.56);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
	color: #ffffff;
}

.ufl-cap--glass-bar .ufl-cap__subtitle {
	color: color-mix(in srgb, var(--ufl-cap-accent) 45%, #ffffff);
}

.ufl-cap--glass-bar .ufl-cap__title {
	color: #ffffff;
}

.ufl-cap--glass-bar .ufl-cap__text {
	color: rgba(241, 245, 249, 0.88);
}

.ufl-cap--glass-bar .ufl-cap__link {
	color: #ffffff !important;
}

.ufl-cap--glass-bar:hover .ufl-cap__dock,
.ufl-cap--glass-bar:focus-within .ufl-cap__dock {
	background: rgba(15, 23, 42, 0.74);
	border-color: color-mix(in srgb, var(--ufl-cap-accent) 60%, rgba(255, 255, 255, 0.35));
	padding: 1.3rem 1.4rem;
}

.ufl-cap--glass-bar:hover .ufl-cap__extra,
.ufl-cap--glass-bar:focus-within .ufl-cap__extra {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ufl-cap--glass-bar:hover .ufl-cap__img,
.ufl-cap--glass-bar:focus-within .ufl-cap__img {
	transform: scale(1.07);
}

/* ==========================================================================
   3. UF Animated Border Box (.ufl-abb)
   ========================================================================== */
@keyframes ufl-abb-rotate {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ufl-abb-pulse {
	0%, 100% {
		opacity: 0.45;
		transform: scale(0.985);
		filter: blur(12px);
	}
	50% {
		opacity: 0.88;
		transform: scale(1.018);
		filter: blur(18px);
	}
}

.ufl-abb {
	--ufl-abb-c1: var(--ufl-primary);
	--ufl-abb-c2: var(--ufl-secondary);
	--ufl-abb-speed: 4s;
	--ufl-abb-radius: var(--ufl-r-lg);
	--ufl-abb-bg: var(--ufl-surface);
	--ufl-abb-title: var(--ufl-ink-strong);
	--ufl-abb-text: var(--ufl-ink-muted);
	--ufl-abb-muted-border: var(--ufl-border);
	position: relative;
	padding: 2.5px;
	border-radius: var(--ufl-abb-radius);
	isolation: isolate;
	transition: transform var(--ufl-dur) var(--ufl-ease), box-shadow var(--ufl-dur) var(--ufl-ease);
}

.ufl-abb--dark {
	--ufl-abb-bg: #0f172a;
	--ufl-abb-title: #f8fafc;
	--ufl-abb-text: rgba(226, 232, 240, 0.78);
	--ufl-abb-muted-border: rgba(255, 255, 255, 0.14);
}

.ufl-abb:hover,
.ufl-abb:focus-within {
	transform: translateY(-3px);
}

.ufl-abb__fx {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 0;
}

.ufl-abb__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	height: 100%;
	padding: 1.75rem 1.6rem;
	border-radius: calc(max(var(--ufl-abb-radius) - 2.5px, 0px));
	background: var(--ufl-abb-bg);
	box-shadow: var(--ufl-shadow-sm);
}

.ufl-abb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.25rem;
}

.ufl-abb__icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--ufl-r-md);
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ufl-abb-c1) 16%, transparent),
		color-mix(in srgb, var(--ufl-abb-c2) 16%, transparent)
	);
	color: var(--ufl-abb-c1);
	transition: transform var(--ufl-dur) var(--ufl-ease), background var(--ufl-dur) var(--ufl-ease);
}

.ufl-abb--dark .ufl-abb__icon {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ufl-abb-c1) 28%, rgba(255, 255, 255, 0.05)),
		color-mix(in srgb, var(--ufl-abb-c2) 24%, rgba(255, 255, 255, 0.05))
	);
	color: color-mix(in srgb, var(--ufl-abb-c1) 45%, #ffffff);
}

.ufl-abb:hover .ufl-abb__icon,
.ufl-abb:focus-within .ufl-abb__icon {
	transform: scale(1.07) rotate(-3deg);
}

.ufl-abb__icon svg {
	width: 1.45rem;
	height: 1.45rem;
	fill: currentColor;
}

.ufl-abb__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.26rem 0.72rem;
	border-radius: var(--ufl-r-pill);
	background: color-mix(in srgb, var(--ufl-abb-c1) 12%, transparent);
	color: var(--ufl-abb-c1);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ufl-abb--dark .ufl-abb__badge {
	background: color-mix(in srgb, var(--ufl-abb-c1) 24%, rgba(255, 255, 255, 0.06));
	color: color-mix(in srgb, var(--ufl-abb-c1) 35%, #ffffff);
}

.ufl-abb__title {
	margin: 0;
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.01em;
	color: var(--ufl-abb-title);
}

.ufl-abb__text {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.62;
	color: var(--ufl-abb-text);
}

.ufl-abb__actions {
	margin-top: auto;
	padding-top: 0.55rem;
}

.ufl-abb__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	padding: 0.58rem 1.15rem;
	border-radius: var(--ufl-r-pill);
	background: linear-gradient(120deg, var(--ufl-abb-c1), var(--ufl-abb-c2));
	color: #ffffff !important;
	font-size: 0.87rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--ufl-abb-c1) 80%, #000);
	transition: transform var(--ufl-dur) var(--ufl-ease), box-shadow var(--ufl-dur) var(--ufl-ease);
}

.ufl-abb__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--ufl-abb-c1) 90%, #000);
}

.ufl-abb__arrow {
	display: inline-block;
	transition: transform var(--ufl-dur) var(--ufl-ease);
}

.ufl-abb__btn:hover .ufl-abb__arrow {
	transform: translateX(3px);
}

/* Variant 1: Conic Spin (360deg glowing rotating conic gradient border) */
.ufl-abb--conic-spin {
	overflow: hidden;
	box-shadow: var(--ufl-shadow-md);
}

.ufl-abb--conic-spin .ufl-abb__fx {
	overflow: hidden;
	background: var(--ufl-abb-muted-border);
}

.ufl-abb--conic-spin .ufl-abb__fx::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 240%;
	aspect-ratio: 1 / 1;
	background: conic-gradient(
		from 0deg,
		var(--ufl-abb-c1) 0deg,
		var(--ufl-abb-c2) 110deg,
		transparent 175deg,
		transparent 215deg,
		var(--ufl-abb-c1) 300deg,
		var(--ufl-abb-c2) 360deg
	);
	animation: ufl-abb-rotate var(--ufl-abb-speed) linear infinite;
}

.ufl-abb--conic-spin:hover {
	box-shadow: 0 14px 36px -14px color-mix(in srgb, var(--ufl-abb-c1) 48%, transparent);
}

/* Variant 2: Neon Trace (bright focused light beam tracing continuously around box perimeter) */
.ufl-abb--neon-trace {
	overflow: hidden;
	box-shadow: var(--ufl-shadow-md);
}

.ufl-abb--neon-trace .ufl-abb__fx {
	overflow: hidden;
	background: var(--ufl-abb-muted-border);
}

.ufl-abb--neon-trace .ufl-abb__fx::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260%;
	aspect-ratio: 1 / 1;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		transparent 265deg,
		var(--ufl-abb-c1) 310deg,
		#ffffff 342deg,
		var(--ufl-abb-c2) 356deg,
		transparent 360deg
	);
	animation: ufl-abb-rotate var(--ufl-abb-speed) linear infinite;
}

.ufl-abb--neon-trace .ufl-abb__fx::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260%;
	aspect-ratio: 1 / 1;
	background: conic-gradient(
		from 180deg,
		transparent 0deg,
		transparent 290deg,
		color-mix(in srgb, var(--ufl-abb-c2) 80%, transparent) 335deg,
		transparent 360deg
	);
	animation: ufl-abb-rotate var(--ufl-abb-speed) linear infinite;
}

.ufl-abb--neon-trace.ufl-abb--dark {
	box-shadow: 0 0 28px -10px color-mix(in srgb, var(--ufl-abb-c1) 52%, transparent), var(--ufl-shadow-md);
}

/* Variant 3: Corner Draw (4 crisp accent L-corners that expand into a complete border on hover) */
.ufl-abb--corner-draw {
	padding: 0;
	border: 1px solid var(--ufl-abb-muted-border);
	box-shadow: var(--ufl-shadow-sm);
}

.ufl-abb--corner-draw .ufl-abb__inner {
	border-radius: calc(max(var(--ufl-abb-radius) - 1px, 0px));
}

.ufl-abb--corner-draw::before,
.ufl-abb--corner-draw::after,
.ufl-abb--corner-draw .ufl-abb__fx::before,
.ufl-abb--corner-draw .ufl-abb__fx::after {
	content: "";
	position: absolute;
	z-index: 3;
	width: 26px;
	height: 26px;
	pointer-events: none;
	border-style: solid;
	border-width: 0;
	transition:
		width 0.48s var(--ufl-ease),
		height 0.48s var(--ufl-ease),
		border-color 0.35s var(--ufl-ease);
}

.ufl-abb--corner-draw::before {
	top: -1px;
	left: -1px;
	border-top-width: 3px;
	border-left-width: 3px;
	border-color: var(--ufl-abb-c1);
	border-top-left-radius: var(--ufl-abb-radius);
}

.ufl-abb--corner-draw::after {
	top: -1px;
	right: -1px;
	border-top-width: 3px;
	border-right-width: 3px;
	border-color: var(--ufl-abb-c2);
	border-top-right-radius: var(--ufl-abb-radius);
}

.ufl-abb--corner-draw .ufl-abb__fx {
	z-index: 3;
}

.ufl-abb--corner-draw .ufl-abb__fx::before {
	bottom: -1px;
	left: -1px;
	border-bottom-width: 3px;
	border-left-width: 3px;
	border-color: var(--ufl-abb-c2);
	border-bottom-left-radius: var(--ufl-abb-radius);
}

.ufl-abb--corner-draw .ufl-abb__fx::after {
	bottom: -1px;
	right: -1px;
	border-bottom-width: 3px;
	border-right-width: 3px;
	border-color: var(--ufl-abb-c1);
	border-bottom-right-radius: var(--ufl-abb-radius);
}

.ufl-abb--corner-draw:hover::before,
.ufl-abb--corner-draw:focus-within::before,
.ufl-abb--corner-draw:hover::after,
.ufl-abb--corner-draw:focus-within::after,
.ufl-abb--corner-draw:hover .ufl-abb__fx::before,
.ufl-abb--corner-draw:focus-within .ufl-abb__fx::before,
.ufl-abb--corner-draw:hover .ufl-abb__fx::after,
.ufl-abb--corner-draw:focus-within .ufl-abb__fx::after {
	width: calc(50% + 2px);
	height: calc(50% + 2px);
}

.ufl-abb--corner-draw:hover,
.ufl-abb--corner-draw:focus-within {
	box-shadow: var(--ufl-shadow-md);
}

/* Variant 4: Pulse Glow (soft breathing gradient halo aura around the card) */
.ufl-abb--pulse-glow {
	overflow: visible;
	background: linear-gradient(135deg, var(--ufl-abb-c1), var(--ufl-abb-c2));
}

.ufl-abb--pulse-glow .ufl-abb__fx {
	inset: -3px;
	background: linear-gradient(135deg, var(--ufl-abb-c1), var(--ufl-abb-c2), var(--ufl-abb-c1));
	border-radius: calc(var(--ufl-abb-radius) + 3px);
	animation: ufl-abb-pulse var(--ufl-abb-speed) ease-in-out infinite;
	z-index: -1;
}

.ufl-abb--pulse-glow:hover .ufl-abb__fx,
.ufl-abb--pulse-glow:focus-within .ufl-abb__fx {
	animation-duration: calc(var(--ufl-abb-speed) * 0.65);
}

/* ==========================================================================
   4. Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ufl-hrb,
	.ufl-hrb__img,
	.ufl-hrb__scrim,
	.ufl-hrb__content,
	.ufl-hrb__reveal,
	.ufl-hrb__icon,
	.ufl-hrb__btn,
	.ufl-hrb--curtain-split::before,
	.ufl-hrb--curtain-split::after,
	.ufl-cap,
	.ufl-cap__media,
	.ufl-cap__img,
	.ufl-cap__badge,
	.ufl-cap__dock,
	.ufl-cap__extra,
	.ufl-abb,
	.ufl-abb__icon,
	.ufl-abb__fx,
	.ufl-abb__fx::before,
	.ufl-abb__fx::after,
	.ufl-abb--corner-draw::before,
	.ufl-abb--corner-draw::after {
		transition: none !important;
		animation: none !important;
	}
}
