/* ============================================================
   Black Friday partner deals (page-black-friday-deals.php)
   Builds on bfcm.css: dark theme, hero, marquee, buttons, fine print.
   ============================================================ */

.bfd .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.bfd-hero { padding-bottom: 110px; }
.bfd-hero__title {
	margin: 26px auto 0; max-width: 900px;
	font: 800 clamp(46px, 8vw, 104px)/.95 var(--font-display); letter-spacing: -.045em; color: #fff;
}
.bfd-hero__glow {
	display: block;
	background: linear-gradient(100deg, #93c5fd 0%, #4c8dff 25%, #a78bfa 50%, #f0abfc 62%, #7c3aed 80%, #4c8dff 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: bf-flow 6s linear infinite;
	filter: drop-shadow(0 18px 50px rgba(124, 58, 237, .45));
	padding-bottom: .08em;
}

.bfd-stats { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.bfd-stats li {
	display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 128px;
	padding: 16px 20px; border-radius: 18px;
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.bfd-stats b { font: 800 34px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.bfd-stats span { font: 600 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bfd-stats b span { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }

/* Floating deal stickers (parallax set by bfdeals.js through --tx / --ty) */
.bfd-stickers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bfd-sticker {
	--tx: 0px; --ty: 0px; --r: 0deg;
	position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 14px 18px 12px; border-radius: 18px;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 24px 50px -20px var(--c2), inset 0 1px 0 rgba(255,255,255,.35);
	transform: translate(var(--tx), var(--ty)) rotate(var(--r));
	transition: transform .4s cubic-bezier(.2, .7, .3, 1);
	opacity: .92;
}
.bfd-sticker b { font: 800 30px/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.bfd-sticker small { font: 700 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.bfd-sticker::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); background-size: 250% 100%; animation: bf-sheen 4.5s ease-in-out infinite; }
.bfd-sticker--1 { left: 6%;  top: 18%; --r: -12deg; animation: bfd-bob 6s ease-in-out infinite; }
.bfd-sticker--2 { right: 7%; top: 14%; --r: 9deg;   animation: bfd-bob 7s ease-in-out infinite .6s; }
.bfd-sticker--3 { left: 11%; bottom: 20%; --r: 7deg; animation: bfd-bob 6.5s ease-in-out infinite 1.2s; }
.bfd-sticker--4 { right: 10%; bottom: 24%; --r: -8deg; animation: bfd-bob 7.5s ease-in-out infinite .3s; }
.bfd-sticker--5 { left: 50%; top: 6%; --r: 4deg; opacity: .5; scale: .75; animation: bfd-bob 8s ease-in-out infinite .9s; }
@keyframes bfd-bob { 50% { translate: 0 -14px; } }
.bfd-hero .bf-hero__inner { z-index: 1; }

/* ---------- House deal banner ---------- */
.bfd-house-wrap { position: relative; z-index: 2; margin-top: -48px; }
.bfd-house {
	--mx: 50%; --my: 50%;
	position: relative; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
	max-width: 980px; margin-inline: auto; padding: 22px 26px; border-radius: 22px; color: #fff;
	background: linear-gradient(135deg, #111a33 0%, #1d1450 100%);
	border: 1px solid rgba(167, 139, 250, .35);
	box-shadow: 0 30px 70px -40px rgba(124, 58, 237, .9);
	transition: transform .25s ease, border-color .25s ease;
}
.bfd-house::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s ease;
	background: radial-gradient(380px circle at var(--mx) var(--my), rgba(124, 58, 237, .3), transparent 60%);
}
.bfd-house:hover { transform: translateY(-3px); border-color: rgba(196, 181, 253, .7); }
.bfd-house:hover::before { opacity: 1; }
.bfd-house__logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -10px rgba(76, 141, 255, .8); }
.bfd-house__text { display: flex; flex-direction: column; gap: 4px; }
.bfd-house__tag { font: 600 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--bf-hot); }
.bfd-house strong { font: 700 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.bfd-house__sub { color: var(--bf-text); font-size: 14.5px; }
.bfd-house__go {
	display: inline-flex; gap: 8px; align-items: center; padding: 13px 20px; border-radius: 999px; white-space: nowrap;
	background: var(--grad); font: 600 15px/1 var(--font-body);
}
.bfd-house:hover .bfd-house__go span { transform: translateX(3px); }
.bfd-house__go span { transition: transform .2s ease; }
.bfd-house--soon:hover { transform: none; }
.bfd-house__go--soon { gap: 10px; color: #e9e3ff; background: rgba(124, 58, 237, .18); border: 1px solid rgba(167, 139, 250, .45); }
.bfd-house--soon:hover .bfd-house__go span { transform: none; }

/* ---------- Stash ---------- */
.bfd-stash { padding: 90px 0 100px; }
.bfd-draft-note {
	max-width: 760px; margin: -20px auto 34px; padding: 12px 18px; border-radius: 12px; text-align: center;
	font-size: 14px; color: #fde68a; background: rgba(250, 204, 21, .08); border: 1px dashed rgba(250, 204, 21, .45);
}
.bfd-draft-note code { color: #fff; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* Sticky control bar */
.bfd-bar {
	position: sticky; top: 80px; z-index: 20;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px; border-radius: 20px;
	background: rgba(11, 17, 31, .78); border: 1px solid rgba(255,255,255,.1);
	backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 20px 50px -30px rgba(0,0,0,.9);
}
.admin-bar .bfd-bar { top: 112px; }

.bfd-chips { position: relative; display: flex; flex-wrap: wrap; gap: 4px; isolation: isolate; }
.bfd-chips__pill {
	position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 0; border-radius: 999px;
	background: var(--grad); box-shadow: 0 8px 24px -8px rgba(124, 58, 237, .9);
	transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), height .3s ease;
}
.bfd-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px;
	background: transparent; color: rgba(255,255,255,.72); cursor: pointer;
	font: 600 14.5px/1 var(--font-body); transition: color .2s ease, background .2s ease;
}
.bfd-chip:hover { color: #fff; background: rgba(255,255,255,.06); }
.bfd-chip.is-active { color: #fff; background: transparent; }
/* Without JS the pill does not move, so the active chip gets its own fill */
.bfd:not(.has-js) .bfd-chip.is-active { background: var(--grad); }
.bfd-chip__n {
	min-width: 22px; padding: 4px 6px; border-radius: 999px; text-align: center;
	font: 700 11.5px/1 var(--font-body); background: rgba(255,255,255,.1); color: inherit;
}
.bfd-chip.is-active .bfd-chip__n { background: rgba(255,255,255,.22); }

.bfd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bfd-search {
	position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 14px; border-radius: 999px;
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.bfd-search:focus-within { border-color: rgba(167, 139, 250, .8); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); color: #fff; }
.bfd-search input {
	width: 180px; border: 0; outline: 0; background: transparent; color: #fff; padding: 0;
	font: 500 14.5px/1 var(--font-body);
}
.bfd-search input::placeholder { color: rgba(255,255,255,.45); }
.bfd-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.bfd-search kbd {
	display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
	font: 600 12px/1 var(--font-body); color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2);
}
.bfd-search:focus-within kbd { opacity: 0; }
.bfd-sort select {
	height: 42px; padding: 0 36px 0 16px; border-radius: 999px; cursor: pointer; appearance: none; -webkit-appearance: none;
	font: 600 14px/1 var(--font-body); color: #fff;
	background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid rgba(255,255,255,.12);
}
.bfd-sort select option { color: #111; }
.bfd-spin {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
	font: 600 14px/1 var(--font-body); color: #1b1546; background: #fff; border: 0;
	box-shadow: 0 10px 30px -12px rgba(255,255,255,.6);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bfd-spin:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(196, 181, 253, .9); }
.bfd-spin:disabled { cursor: progress; }
.bfd-spin__die { display: grid; color: #7c3aed; }
.bfd-spin.is-rolling .bfd-spin__die { animation: bfd-roll .5s linear infinite; }
@keyframes bfd-roll { to { transform: rotate(360deg); } }

.bfd-count { margin: 22px 4px 18px; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- Deal cards ---------- */
.bfd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bfd-card {
	--mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
	position: relative; isolation: isolate; display: flex; flex-direction: column;
	padding: 26px 24px 22px; border-radius: 24px;
	background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
	border: 1px solid var(--bf-line);
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
	transform-style: preserve-3d;
}
.bfd-card[hidden] { display: none; }
/* Brand-tinted spotlight and top glow */
.bfd-card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none;
	background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%);
	transition: opacity .3s ease;
}
.bfd-card::after {
	content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; z-index: 1;
	background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent); opacity: .7;
}
.bfd-card:hover { border-color: color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c2) 80%, transparent); }
.bfd-card:hover::before { opacity: 1; }
.bfd-card.is-tilting { transition: transform .08s linear, border-color .3s ease, box-shadow .3s ease; }

.bfd-card--featured { background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 18%, #0d1226), rgba(255,255,255,.02)); }

.bfd-card__top { display: flex; align-items: center; gap: 10px; }
.bfd-logo {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none;
	font: 800 20px/1 var(--font-display); color: #fff;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 10px 24px -10px var(--c2), inset 0 1px 0 rgba(255,255,255,.35);
	transform: translateZ(30px);
}
.bfd-logo--img { background: #fff; overflow: hidden; }
.bfd-logo--img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bfd-tag {
	padding: 6px 10px; border-radius: 999px;
	font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
	color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.bfd-star, .bfd-sample {
	margin-left: auto; padding: 6px 10px; border-radius: 999px;
	font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.bfd-star { color: #1b1546; background: #fff; }
.bfd-sample { color: #fde68a; background: rgba(250, 204, 21, .1); border: 1px dashed rgba(250, 204, 21, .5); }

.bfd-card__name { margin-top: 18px; font-size: 20px; letter-spacing: -.01em; }
.bfd-card__deal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; transform: translateZ(20px); }
.bfd-card__deal b {
	font: 800 50px/1 var(--font-display); letter-spacing: -.045em;
	padding-right: .1em; margin-right: -.06em; /* room for the last glyph, which the gradient clip would cut */
	background: linear-gradient(120deg, #fff 10%, var(--c1) 55%, var(--c2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.bfd-card__deal span { color: rgba(255,255,255,.75); font-size: 15px; font-weight: 600; }
.bfd-card__blurb { margin-top: 10px; color: var(--bf-text); font-size: 14.5px; line-height: 1.55; }
.bfd-card__foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }

.bfd-code {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
	padding: 12px 14px; border-radius: 12px; cursor: pointer; color: #fff;
	background: rgba(255,255,255,.04); border: 1.5px dashed rgba(255,255,255,.28);
	transition: background .2s ease, border-color .2s ease;
}
button.bfd-code:hover { background: rgba(255,255,255,.08); border-color: var(--c1); }
.bfd-code__text { font: 800 16px/1 var(--font-display); letter-spacing: .12em; }
.bfd-code__hint { font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.bfd-code.is-copied { border-color: #34d399; background: rgba(52, 211, 153, .1); }
.bfd-code.is-copied .bfd-code__hint { color: #34d399; }
.bfd-code--none { cursor: default; justify-content: center; font-size: 13px; color: rgba(255,255,255,.6); border-style: solid; border-color: rgba(255,255,255,.1); }
.bfd-card__go { padding-block: 13px; font-size: 15px; }
.bfd-card:hover .bfd-card__go { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; }
.bfd-card__ends { text-align: center; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.bfd-card__ends.is-soon { color: #fda4af; }
.bfd-card__ends.is-soon::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #f43f5e; vertical-align: 1px; animation: bf-ping 1.8s ease-out infinite; }
.bfd-card.is-ended { opacity: .45; filter: grayscale(.8); }

/* Entrance + filter animation hooks */
.bfd.has-js .bfd-card.is-entering { animation: bfd-in .55s cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--d, 0ms); }
@keyframes bfd-in { from { opacity: 0; translate: 0 22px; scale: .96; } }

/* Spin picker */
.bfd-card.is-spin { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 0 50px -6px var(--c1); }
.bfd-card.is-picked { border-color: transparent; animation: bfd-picked .8s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 2px var(--c1), 0 0 80px -6px var(--c1), 0 40px 80px -30px var(--c2); }
.bfd-card.is-picked::before { opacity: 1; }
@keyframes bfd-picked { 0% { scale: 1; } 35% { scale: 1.06; } 100% { scale: 1; } }
.bfd-grid.is-spinning .bfd-card:not(.is-spin) { opacity: .5; }

.bfd-empty, .bfd-soon { text-align: center; padding: 60px 20px; border-radius: 24px; border: 1px dashed rgba(255,255,255,.15); background: rgba(255,255,255,.02); }
.bfd-empty[hidden] { display: none; }
.bfd-empty__big { font: 300 54px/1 var(--font-display); color: rgba(255,255,255,.3); }
.bfd-empty p { color: var(--bf-text); margin: 10px 0 22px; }
.bfd-soon { max-width: 720px; margin-inline: auto; border-style: solid; border-color: rgba(167, 139, 250, .3); }
.bfd-soon__tag { font: 600 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--bf-hot); }
.bfd-soon h3 { margin-top: 12px; font-size: clamp(24px, 3vw, 32px); }
.bfd-soon p:not(.bfd-soon__tag) { margin: 10px 0 26px; color: var(--bf-text); }

/* ---------- Vendor CTA ---------- */
.bfd-vendor { padding: 0 0 20px; }
.bfd-vendor__inner {
	--mx: 50%; --my: 50%;
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 30px;
	padding: 44px 48px; border-radius: 28px;
	background: linear-gradient(120deg, #101a3a 0%, #1f1458 60%, #2a1060 100%);
	border: 1px solid rgba(167, 139, 250, .3);
}
.bfd-vendor__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 58, 237, .35), transparent 60%);
}
.bfd-vendor__inner::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
	background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(circle at 100% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 100% 50%, #000, transparent 70%);
}
.bfd-vendor h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; }
.bfd-vendor p:not(.bf-head__eyebrow) { margin-top: 10px; max-width: 560px; color: var(--bf-text); font-size: 16px; line-height: 1.6; }
.bf-fine__item p a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.bfd-grid { grid-template-columns: repeat(2, 1fr); }
	.bfd-bar { position: static; }
}
@media (max-width: 860px) {
	.bfd-stickers { display: none; }
	.bfd-house { grid-template-columns: auto 1fr; }
	.bfd-house__go { grid-column: 1 / -1; justify-content: center; }
	.bfd-vendor__inner { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
}
@media (max-width: 680px) {
	.bfd-grid { grid-template-columns: 1fr; }
	.bfd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
	.bfd-chips::-webkit-scrollbar { display: none; }
	.bfd-chip { flex: none; }
	.bfd-tools { width: 100%; }
	.bfd-search { flex: 1 1 100%; }
	.bfd-spin { white-space: nowrap; }
	.bfd-search input { width: 100%; }
	.bfd-search kbd { display: none; }
	.bfd-sort, .bfd-spin { flex: 1; }
	.bfd-sort select, .bfd-spin { width: 100%; justify-content: center; }
	.bfd-stats li { min-width: 0; flex: 1; padding: 14px 10px; }
	.bfd-stats b { font-size: 28px; }
	.bfd-house { padding: 20px; }
	.bfd-house__logo { width: 52px; height: 52px; }
	.bfd-house strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.bfd-card { transform: none !important; }
}

/* ---------- Submit a deal (dialog) ---------- */
html:has(.bfd-modal[open]) { overflow: hidden; }
.bfd-soon__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bfd-modal {
	width: min(1060px, calc(100% - 32px)); max-width: 100vw; max-height: calc(100dvh - 40px);
	padding: 0; border: 0; border-radius: 28px; background: transparent; color: #fff; overflow: visible;
}
.bfd-modal::backdrop { background: rgba(3, 5, 12, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bfd-modal[open] { animation: bfd-modal-in .45s cubic-bezier(.2, .9, .3, 1.1); }
.bfd-modal[open]::backdrop { animation: bfd-fade .3s ease; }
@keyframes bfd-modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes bfd-fade { from { opacity: 0; } }
.bfd-modal__panel {
	position: relative; display: grid; grid-template-columns: 1fr 340px;
	max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; border-radius: 28px;
	background: linear-gradient(160deg, #0f1730 0%, #120d2e 100%);
	border: 1px solid rgba(167, 139, 250, .3);
	box-shadow: 0 50px 120px -30px rgba(124, 58, 237, .6);
}
.bfd-modal__close {
	position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
	transition: background .2s ease, transform .3s ease;
}
.bfd-modal__close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }

.bfd-form { padding: 38px 40px 34px; min-width: 0; }
.bfd-form .bf-head__eyebrow { margin-bottom: 8px; }
.bfd-form__head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; padding-right: 40px; }
.bfd-form__head p:not(.bf-head__eyebrow) { margin-top: 6px; color: var(--bf-text); font-size: 15px; }
.bfd-steps { display: flex; gap: 8px; margin: 22px 0 24px; }
.bfd-steps li {
	display: flex; align-items: center; gap: 9px; flex: 1; padding: 10px 12px; border-radius: 12px;
	font: 600 13.5px/1 var(--font-body); color: rgba(255,255,255,.5);
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: all .3s ease;
}
.bfd-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 12px; transition: background .3s ease; }
.bfd-steps li.is-on { color: #fff; border-color: rgba(167, 139, 250, .5); background: rgba(124, 58, 237, .14); }
.bfd-steps li.is-on span { background: var(--grad); }

.bfd-step { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bfd-step[hidden] { display: none; }
.bfd-step.is-active { animation: bfd-step .4s cubic-bezier(.2, .8, .3, 1); }
@keyframes bfd-step { from { opacity: 0; transform: translateX(16px); } }
.bfd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bfd-row--amount { grid-template-columns: 140px 1fr; }
.bfd-row--logo { grid-template-columns: 1fr 150px; }
.bfd-row--link { grid-template-columns: 1fr 1.5fr; }
.bfd-hint { margin: -8px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.5); }

.bfd-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.bfd-field > label, .bfd-field__label { display: flex; justify-content: space-between; gap: 8px; font: 600 13.5px/1.2 var(--font-body); color: rgba(255,255,255,.85); }
.bfd-field em { font-style: normal; font-weight: 500; color: rgba(255,255,255,.45); }
.bfd-field__count { font-weight: 500; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
.bfd-form input[type="text"], .bfd-form input[type="url"], .bfd-form input[type="email"], .bfd-form input[type="date"], .bfd-form textarea {
	width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
	border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff;
	font: 500 15px/1.2 var(--font-body); color-scheme: dark;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.bfd-form textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.bfd-form input::placeholder, .bfd-form textarea::placeholder { color: rgba(255,255,255,.35); }
.bfd-form input:focus, .bfd-form textarea:focus { outline: 0; border-color: rgba(167, 139, 250, .9); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(124, 58, 237, .22); }
.bfd-field.is-invalid input, .bfd-field.is-invalid textarea, .bfd-field.is-invalid .bfd-drop { border-color: #fb7185; box-shadow: 0 0 0 4px rgba(244, 63, 94, .15); }
.bfd-field.is-invalid .bfd-radios span { border-color: rgba(251, 113, 133, .7); }

.bfd-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.bfd-radios label { position: relative; cursor: pointer; }
.bfd-radios input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bfd-radios span {
	display: inline-flex; padding: 11px 16px; border-radius: 999px;
	font: 600 14px/1 var(--font-body); color: rgba(255,255,255,.75);
	border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
	transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.bfd-radios label:hover span { border-color: rgba(255,255,255,.3); color: #fff; }
.bfd-radios input:checked + span { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(124, 58, 237, .9); }
.bfd-radios input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124, 58, 237, .35); }

.bfd-form input[type="color"] {
	width: 100%; height: 46px; padding: 4px; border-radius: 12px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
}
.bfd-form input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.bfd-form input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.bfd-form input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }

.bfd-drop {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border-radius: 12px;
	border: 1.5px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03); cursor: pointer;
	font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.75); transition: border-color .2s ease, background .2s ease;
}
.bfd-drop svg { flex: none; color: #a78bfa; }
.bfd-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.bfd-drop small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.45); }
.bfd-drop u { color: #c4b5fd; }
.bfd-drop:hover, .bfd-drop.is-over { border-color: #a78bfa; background: rgba(124, 58, 237, .1); }
.bfd-drop.has-file { border-style: solid; border-color: rgba(52, 211, 153, .55); }
.bfd-drop.has-file svg { color: #34d399; }
.bfd-drop:focus-within { box-shadow: 0 0 0 4px rgba(124, 58, 237, .22); }

.bfd-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.8); }
.bfd-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #7c3aed; }
.bfd-check.is-invalid { color: #fda4af; }
.bfd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bfd-form__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.bfd-form__nav .bf-btn { padding: 14px 24px; font-size: 15px; }
.bfd-form__nav .bf-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.bfd-form__error {
	margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;
	color: #fecdd3; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .35);
}
.bfd-form__error[hidden] { display: none; }

.bfd-form.is-done .bfd-form__head, .bfd-form.is-done .bfd-step, .bfd-form.is-done .bfd-form__error { display: none; }
.bfd-done { display: grid; justify-items: center; gap: 12px; padding: 70px 10px 60px; text-align: center; }
.bfd-done[hidden] { display: none; }
.bfd-done__check { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, .25), transparent 70%); }
.bfd-done__check svg { width: 84px; height: 84px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bfd-done__check circle { stroke: #34d399; stroke-dasharray: 151; stroke-dashoffset: 151; animation: bfd-draw .6s ease forwards; }
.bfd-done__check path { stroke: #fff; stroke-dasharray: 36; stroke-dashoffset: 36; animation: bfd-draw .4s .5s ease forwards; }
@keyframes bfd-draw { to { stroke-dashoffset: 0; } }
.bfd-done h2 { font-size: 32px; letter-spacing: -.03em; outline: 0; }
.bfd-done p { max-width: 400px; color: var(--bf-text); line-height: 1.6; }
.bfd-done .bf-btn { margin-top: 10px; }

.bfd-modal__preview {
	display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 30px;
	border-left: 1px solid rgba(255,255,255,.08);
	background: radial-gradient(400px 300px at 50% 35%, rgba(124, 58, 237, .2), transparent 70%), rgba(255,255,255,.015);
}
.bfd-modal__preview-tag { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bfd-modal__preview-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: bf-ping 1.8s ease-out infinite; }
.bfd-modal__preview-note { font-size: 13px; color: rgba(255,255,255,.45); text-align: center; }
.bfd-card--preview { pointer-events: none; transform: none; animation: bfd-float 5s ease-in-out infinite; transition: border-color .3s ease, box-shadow .3s ease; }
.bfd-card--preview::before { opacity: .8; }
.bfd-card--preview .bfd-card__deal b { overflow-wrap: anywhere; }
@keyframes bfd-float { 50% { translate: 0 -8px; } }

@media (max-width: 860px) {
	.bfd-modal__panel { grid-template-columns: 1fr; }
	.bfd-modal__preview { display: none; }
}
@media (max-width: 560px) {
	.bfd-modal { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.bfd-modal__panel { height: 100%; max-height: 100dvh; border-radius: 0; border: 0; }
	.bfd-form { padding: 26px 18px 30px; }
	.bfd-row, .bfd-row--logo, .bfd-row--link { grid-template-columns: 1fr; }
	.bfd-row--amount { grid-template-columns: 110px 1fr; }
	.bfd-form__nav .bf-btn { flex: 1; padding-inline: 14px; }
}
.bfd-code__hint { white-space: nowrap; }
.bfd-card--preview .bfd-code--none .bfd-code__hint { display: none; }
.bfd-card--preview .bfd-code--none .bfd-code__text { font: 500 13px/1 var(--font-body); letter-spacing: 0; color: rgba(255,255,255,.6); }
