/*
 * Black Friday theme — "Midnight Sale"
 * ------------------------------------------------------------------
 * Built like Halloween / Autumn: every rule is namespaced under `.bf-fx`, the
 * fixed overlay BlackFridayTheme.tsx mounts on the public marketing pages (not
 * the app). This keeps the whole effect scoped even though
 * `data-theme="blackfriday"` is on <body> site-wide.
 *
 * What's here: glossy black sale balloons rising up the page, one balloon that
 * pops into confetti, a swinging neon SALE sign, fluttering confetti and a tied
 * balloon bunch in the bottom-left. No PNG assets — inline SVG + CSS.
 */

.bf-fx,
.bf-sign {
    /* Palette — midnight black with brand green and gold */
    --bf-black: #050607;
    --bf-green: #04B76D;
    --bf-neon: #2cf0a0;
    --bf-gold: #F5C542;
}

.bf-fx {
    position: fixed;
    inset: 0;
    /* Above the hero accents (cat hat z 21, bag z 14) so balloons always pass
       IN FRONT of the cat, hat and bag; below the sticky header (z 50), so the
       sign's cords disappear behind it. Clicks pass straight through. */
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
    --bf-string-color: rgba(20, 22, 25, 0.5);
}
html.dark .bf-fx {
    --bf-string-color: rgba(255, 255, 255, 0.32);
}

.bf-string { stroke: var(--bf-string-color); }

/* ── Atmosphere: soft charcoal + green wash behind the sign. Static. ─────── */
.bf-atmosphere {
    position: absolute;
    top: -240px;
    right: -240px;
    width: 860px;
    height: 700px;
    background:
        radial-gradient(closest-side at 72% 42%, rgba(4, 183, 109, 0.16) 0%, rgba(4, 183, 109, 0) 70%),
        radial-gradient(closest-side at 62% 48%, rgba(20, 22, 25, 0.10) 0%, rgba(20, 22, 25, 0) 80%);
    filter: blur(4px);
}
html.dark .bf-atmosphere {
    background:
        radial-gradient(closest-side at 72% 42%, rgba(44, 240, 160, 0.14) 0%, rgba(44, 240, 160, 0) 70%),
        radial-gradient(closest-side at 62% 48%, rgba(245, 197, 66, 0.06) 0%, rgba(245, 197, 66, 0) 80%);
}

@media (max-width: 640px) {
    .bf-atmosphere { width: 560px; height: 480px; }
}

/* ── Neon SALE sign, hanging in the top-right below the header ───────────── */
/* Its own fixed layer (it is a link to /pricing), same height as .bf-fx. */
.bf-sign {
    position: fixed;
    z-index: 30;
    top: 112px;
    right: 22px;
    width: 196px;
    display: block;
    cursor: pointer;
}
.bf-sign:hover svg { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32)) brightness(1.15); }
.bf-sign__cord { pointer-events: none; }
/* sign + both cords swing together as one pendulum hinged at the ceiling */
.bf-sign__swing {
    position: relative;
    width: 100%;
    transform-origin: 50% -112px;
    animation: bf-sign-swing 5.5s ease-in-out infinite;
}
.bf-sign svg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}
/* cords run from the top of the screen down to the two hooks */
.bf-sign__cord {
    position: absolute;
    bottom: calc(100% - 6%);
    width: 1.5px;
    height: 160px;
    background: linear-gradient(to bottom, rgba(40, 44, 48, 0) 0%, rgba(40, 44, 48, 0.7) 40%);
}
html.dark .bf-sign__cord {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 40%);
}
.bf-sign__cord--l { left: 17%; }
.bf-sign__cord--r { right: 17%; }

/* neon glow on the tubes */
.bf-neon--frame { stroke: var(--bf-neon); filter: drop-shadow(0 0 3px var(--bf-neon)) drop-shadow(0 0 8px rgba(44, 240, 160, 0.7)); }
.bf-neon--green { filter: drop-shadow(0 0 3px var(--bf-neon)) drop-shadow(0 0 10px rgba(44, 240, 160, 0.8)); }
.bf-neon--white { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.45)); }
.bf-neon--gold  { filter: drop-shadow(0 0 3px var(--bf-gold)) drop-shadow(0 0 8px rgba(245, 197, 66, 0.7)); }

/* SALE flickers like a real tube now and then; the frame stutters on its own beat */
.bf-neon--green { animation: bf-neon-flicker 7s linear infinite; }
.bf-neon--frame { animation: bf-neon-flicker 11s linear infinite; animation-delay: -4s; }
.bf-neon--gold  { animation: bf-neon-blink 2.4s ease-in-out infinite; }

@media (max-width: 640px) {
    /* the phone header (with the announcement bar) is taller, so hang it lower */
    .bf-sign { width: 104px; top: 150px; right: 8px; }
    .bf-sign__swing { transform-origin: 50% -150px; }
}

/* ── Rising black balloons (signature motion) ────────────────────────────── */
.bf-balloon {
    position: absolute;
    bottom: -24vh;
    left: var(--left, 50%);
    width: var(--size, 56px);
    height: calc(var(--size, 56px) * 1.875);
    opacity: 0;
    will-change: transform, opacity;
    animation: bf-rise var(--dur, 22s) linear infinite;
    animation-delay: var(--delay, 0s);
}
/* Only the balloon body takes clicks (to pop it); its string, label and the
   rest of the box let clicks through to the page. */
.bf-balloon__skin {
    pointer-events: auto;
    cursor: pointer;
}

/* gentle side-to-side tilt as it floats, hinged near the top of the balloon */
.bf-balloon__sway {
    width: 100%;
    height: 100%;
    transform-origin: 50% 25%;
    animation: bf-sway 4.2s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0s) / 3);
}
.bf-balloon svg,
.bf-popper svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}
/* on the dark site a black balloon would vanish: give it a faint rim light */
html.dark .bf-balloon svg,
html.dark .bf-popper svg,
html.dark .bf-bunch__img {
    filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 10px rgba(44, 240, 160, 0.18));
}

/* ── The balloon that pops ───────────────────────────────────────────────── */
.bf-popper {
    position: absolute;
    bottom: -24vh;
    left: var(--left, 50%);
    width: 62px;
    height: 116px;
    will-change: transform;
    animation: bf-pop-rise 14s linear infinite;
    animation-delay: var(--delay, 0s);
}
.bf-popper__balloon {
    width: 100%;
    height: 100%;
    transform-origin: 50% 30%;
    animation: bf-pop-balloon 14s linear infinite;
    animation-delay: var(--delay, 0s);
}
/* the burst sits on the balloon's centre */
.bf-popper__burst {
    position: absolute;
    left: 50%;
    top: 28%;
    width: 0;
    height: 0;
}
.bf-popper__burst span {
    position: absolute;
    left: -6px;
    top: -3px;
    width: 12px;
    height: 6px;
    border-radius: 1px;
    background: var(--color, #F5C542);
    opacity: 0;
    animation: bf-burst 14s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

/* ── Confetti fluttering down ─────────────────────────────────────────────── */
.bf-confetto {
    position: absolute;
    top: -6vh;
    left: var(--left, 50%);
    width: var(--size, 8px);
    height: var(--size, 8px);
    will-change: transform;
    animation: bf-confetti-fall var(--dur, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
}
.bf-confetto__piece {
    display: block;
    width: 100%;
    height: 45%;
    border-radius: 1px;
    background: var(--color, #F5C542);
    opacity: 0.85;
    animation: bf-confetti-flip var(--spin, 2s) linear infinite;
}
.bf-confetto__piece--round { height: 100%; border-radius: 50%; width: 70%; }
html.dark .bf-confetto__piece { opacity: 0.9; }

/* ── Cat on two balloons, floating up from the bottom-left ──────────────── */
.bf-bunch {
    position: absolute;
    left: 2.5%;
    bottom: -175px;
    width: 80px;
    will-change: transform;
    animation: bf-bunch-float 30s linear infinite;
    animation-delay: var(--delay, 0s);
}
.bf-bunch__sway {
    transform-origin: 50% 100%;
    animation: bf-bunch-bob 6s ease-in-out infinite;
}
.bf-bunch__sway { position: relative; }

/* With one balloon popped the cat swings over to hang from the other one. */
.bf-bunch__tilt {
    position: relative;
    transform-origin: 50% 0;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bf-bunch__tilt.is-hanging-gold  { transform: translateY(10px) rotate(-13deg); }
.bf-bunch__tilt.is-hanging-black { transform: translateY(10px) rotate(13deg); }

/* three stacked copies of the same picture: black balloon, gold balloon, cat */
.bf-bunch__img { position: absolute; inset: 0; width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.bf-bunch__img--cat { position: relative; }
.bf-bunch__img--black { transform-origin: 32% 30%; }
.bf-bunch__img--gold  { transform-origin: 70% 21%; }
.bf-bunch__img.is-gone { animation: bf-cat-balloon-pop 0.14s ease-out forwards; }
@keyframes bf-cat-balloon-pop {
    0%   { transform: scale(1); opacity: 1; }
    60%  { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* both balloons gone: a startled hop, then the cat drops off the screen */
.bf-bunch__sway.is-falling { animation: bf-cat-fall 1.7s cubic-bezier(0.55, 0, 0.9, 0.5) forwards; }
@keyframes bf-cat-fall {
    0%   { transform: translateY(0) rotate(0); }
    12%  { transform: translateY(-14px) rotate(-8deg); }
    100% { transform: translateY(110vh) rotate(38deg); }
}
/* round click targets over the two balloons (picture is 116 x 216) */
.bf-bunch__hit {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
}
.bf-bunch__hit--black { left: 6%; top: 14%; width: 50%; height: 33%; }
.bf-bunch__hit--gold  { left: 41%; top: 0; width: 59%; height: 40%; }

@media (max-width: 640px) {
    .bf-bunch { width: 60px; left: 1%; bottom: -130px; }
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes bf-rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    6%   { opacity: var(--op, 0.9); }
    30%  { transform: translate(calc(var(--drift, 2) * 1vw), -38vh); }
    60%  { transform: translate(calc(var(--drift, 2) * -1vw), -78vh); }
    92%  { opacity: var(--op, 0.9); }
    100% { transform: translate(0, -132vh); opacity: 0; }
}

@keyframes bf-sway {
    0%, 100% { transform: rotate(-5deg); }
    50%      { transform: rotate(5deg); }
}

/* popper: rises to about two-thirds up the screen, then stays put while it pops */
@keyframes bf-pop-rise {
    0%        { transform: translateY(0); }
    56%, 100% { transform: translateY(-82vh); }
}
@keyframes bf-pop-balloon {
    0%        { transform: scale(1) rotate(0); opacity: 0; }
    5%        { opacity: 1; }
    50%       { transform: scale(1) rotate(-3deg); }
    55%       { transform: scale(1.14, 1.1) rotate(2deg); opacity: 1; }
    56.2%     { transform: scale(1.3); opacity: 0; }
    100%      { transform: scale(0); opacity: 0; }
}
@keyframes bf-burst {
    0%, 55.8% { transform: rotate(var(--a, 0deg)) translateX(0) scale(0.4); opacity: 0; }
    56.4%     { transform: rotate(var(--a, 0deg)) translateX(8px) scale(1); opacity: 1; }
    63%       { transform: rotate(var(--a, 0deg)) translateX(86px) translateY(20px) rotate(160deg); opacity: 0.95; }
    72%, 100% { transform: rotate(var(--a, 0deg)) translateX(104px) translateY(56px) rotate(320deg); opacity: 0; }
}

@keyframes bf-confetti-fall {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(var(--sway, 24px), 28vh); }
    50%  { transform: translate(calc(var(--sway, 24px) * -0.6), 56vh); }
    75%  { transform: translate(var(--sway, 24px), 84vh); }
    100% { transform: translate(0, 114vh); }
}
@keyframes bf-confetti-flip {
    0%   { transform: rotate3d(1, 0.4, 0.2, 0deg); }
    100% { transform: rotate3d(1, 0.4, 0.2, 360deg); }
}

@keyframes bf-sign-swing {
    0%, 100% { transform: rotate(-1.6deg); }
    50%      { transform: rotate(1.6deg); }
}

/* mostly steady, with two quick stutters late in the cycle */
@keyframes bf-neon-flicker {
    0%, 86%, 89%, 93%, 100% { opacity: 1; }
    87%, 88%                { opacity: 0.35; }
    91%                     { opacity: 0.55; }
}
@keyframes bf-neon-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* the bunch drifts up and a little to the right, all the way off the top */
@keyframes bf-bunch-float {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(6vw, -70vh); }
    100% { transform: translate(12vw, calc(-100vh - 260px)); }
}

/* clicked balloon: a quick swell before it bursts */
.bf-balloon.is-popping .bf-balloon__sway,
.bf-popper.is-popping .bf-popper__balloon {
    animation: bf-click-swell 0.11s ease-out forwards;
}
@keyframes bf-click-swell {
    to { transform: scale(1.2); }
}

/* the confetti burst where a clicked balloon was */
.bf-click-burst {
    position: absolute;
    width: 0;
    height: 0;
}
.bf-click-burst span {
    position: absolute;
    left: -6px;
    top: -3px;
    width: 12px;
    height: 6px;
    border-radius: 1px;
    background: var(--color, #F5C542);
    animation: bf-click-burst 0.85s ease-out forwards;
}
@keyframes bf-click-burst {
    0%   { transform: rotate(var(--a, 0deg)) translateX(6px) scale(1); opacity: 1; }
    55%  { transform: rotate(var(--a, 0deg)) translateX(86px) translateY(20px) rotate(160deg); opacity: 0.95; }
    100% { transform: rotate(var(--a, 0deg)) translateX(104px) translateY(56px) rotate(320deg); opacity: 0; }
}

@keyframes bf-bunch-bob {
    0%, 100% { transform: translateY(6px) rotate(-2.5deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}

/* ── Page accents (rendered inline by pages, gated on the active theme) ──
   These sit INSIDE page content (hero cat), not the .bf-fx overlay. */

/* Party hat on the cat's head. Percentages map to the cat illustration box. */
.bf-cat-hat {
    position: absolute;
    top: 23%;
    left: 28%;
    width: 17%;
    z-index: 21;
    pointer-events: none;
    transform: rotate(12deg);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.22));
}

/* Shopping bag on the ground beside the cat. */
.bf-cat-bag {
    position: absolute;
    top: 62%;
    left: -4%;
    width: 30%;
    z-index: 14;
    pointer-events: none;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.22));
}
html.dark .bf-cat-bag,
html.dark .bf-cat-hat {
    filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.35)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
/* ── Header touches (see BlackFridaySiteAccents.tsx) ─────────────────────── */

/* Gift ribbon: a gold satin band down the right side of an element with a bow
   sitting on its top edge. The parent is `relative`. */
.bf-ribbon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 9px;
    width: 4px;
    pointer-events: none;
}
.bf-ribbon--edge { right: 0; width: 3px; }
.bf-ribbon__band {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #b8861b 0%, #ffe28a 45%, #d9a520 100%);
    box-shadow: 0 0 0 0.5px rgba(120, 85, 10, 0.35);
}
.bf-ribbon__bow {
    position: absolute;
    top: -11px;
    left: 50%;
    width: 26px;
    margin-left: -13px;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}
.bf-ribbon__bow svg { width: 100%; height: auto; display: block; }

/* Pricing link: black pill with a gold satin sash across its corner (C1) */
.bf-sash-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* same height as the other header links (24px line), so it sits in the
       row naturally; the side padding is pulled back out with negative
       margins so the word stays where plain "Pricing" would be */
    height: 24px;
    padding: 0 21px 0 7px;
    margin: 0 -6px;
    border-radius: 6px;
    background: #050607;
    border: 1px solid rgba(245, 197, 66, 0.45);
    color: #f4f6f7;
    line-height: 22px;
}
.bf-sash-pill__clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.bf-sash-pill__sash {
    position: absolute;
    top: 4px;
    right: -16px;
    width: 50px;
    transform: rotate(45deg);
    text-align: center;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.5;
    color: #14161a;
    background: linear-gradient(90deg, #b8861b, #ffe28a 50%, #d9a520);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Pricing page touches ─────────────────────────────────────────────── */

/* Neon kicker above the pricing heading, countdown underneath. */
.bf-pricing-kicker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 22px;
}
.bf-pricing-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.bf-pricing-countdown__ends {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa3ab;
}
.bf-pricing-kicker {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 18px;
    border-radius: 12px;
    background: #050607;
    border: 1.5px solid #2cf0a0;
    box-shadow: 0 0 12px rgba(44, 240, 160, 0.55), inset 0 0 12px rgba(44, 240, 160, 0.18);
    color: #2cf0a0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(44, 240, 160, 0.9), 0 0 12px rgba(44, 240, 160, 0.6);
    animation: bf-neon-flicker 9s linear infinite;
}
.bf-pricing-kicker__pct {
    color: #F5C542;
    text-shadow: 0 0 4px rgba(245, 197, 66, 0.9), 0 0 10px rgba(245, 197, 66, 0.6);
}

/* Two balloons tied to the selector's top-right corner. */
.bf-corner-balloons {
    position: absolute;
    right: -6px;
    /* the last ~30px of string sits behind the selector bar */
    bottom: calc(100% - 30px);
    width: 78px;
    pointer-events: none;
    transform: rotate(8deg);
    transform-origin: 50% 100%;
}
.bf-corner-balloons svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
html.dark .bf-corner-balloons svg { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 10px rgba(44, 240, 160, 0.18)); }
.bf-corner-balloons .bf-string { stroke: rgba(255, 255, 255, 0.35); }
html.light .bf-corner-balloons .bf-string { stroke: rgba(20, 22, 25, 0.5); }

@media (max-width: 640px) {
    .bf-corner-balloons { width: 58px; right: -6px; }
    .bf-pricing-kicker { font-size: 12px; padding: 7px 14px; letter-spacing: 0.16em; }
}

/* ── Sale countdown (header bar, pricing page, customer shop) ─────────────── */

/* Digit tiles: 02 days 14 hrs 33 min 12 sec */
.bf-tiles {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}
.bf-tiles__unit {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.bf-tiles__num {
    display: inline-block;
    min-width: 2.1em;
    padding: 3px 5px;
    border-radius: 6px;
    background: #050607;
    border: 1px solid rgba(44, 240, 160, 0.45);
    box-shadow: inset 0 0 8px rgba(44, 240, 160, 0.15);
    color: #2cf0a0;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 0 5px rgba(44, 240, 160, 0.8);
    line-height: 1.2;
}
.bf-tiles__label {
    color: #9aa3ab;
    font-size: 0.72em;
    font-weight: 600;
}
.bf-tiles--sm { font-size: 13px; }
.bf-tiles--md { font-size: 17px; gap: 9px; }

/* Bar across the top of the header (replaces the announcement while it runs) */
.bf-countdown-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 7px 12px;
    background:
        radial-gradient(60% 140% at 50% 0%, rgba(44, 240, 160, 0.14) 0%, rgba(44, 240, 160, 0) 70%),
        #050607;
    border-bottom: 1px solid rgba(44, 240, 160, 0.35);
    color: #f4f6f7;
}
.bf-countdown-bar__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2cf0a0;
    text-shadow: 0 0 5px rgba(44, 240, 160, 0.85), 0 0 12px rgba(44, 240, 160, 0.45);
}
.bf-pct {
    color: #F5C542;
    text-shadow: 0 0 5px rgba(245, 197, 66, 0.85);
}
.bf-countdown-bar__ends {
    font-size: 12px;
    font-weight: 600;
    color: #9aa3ab;
}
.bf-countdown-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 6px;
    background: #04B76D;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.bf-countdown-bar:hover .bf-countdown-bar__cta { background: #05C067; }
a.bf-countdown-bar { text-decoration: none; cursor: pointer; }
a.bf-countdown-bar:hover { background:
        radial-gradient(60% 140% at 50% 0%, rgba(44, 240, 160, 0.2) 0%, rgba(44, 240, 160, 0) 70%),
        #050607; }

@media (max-width: 640px) {
    .bf-countdown-bar { gap: 5px 8px; padding: 6px 8px; }
    .bf-countdown-bar__title { font-size: 11px; letter-spacing: 0.1em; gap: 5px; }
    .bf-countdown-bar__ends { display: none; }
    .bf-tiles--sm { font-size: 11.5px; gap: 4px; }
    .bf-tiles--sm .bf-tiles__num { padding: 2px 3px; }
}

/* Customer shop banner (dashboard purchase page) */
.bf-shop-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 20px;
    border-radius: 16px;
    background:
        radial-gradient(50% 120% at 85% 0%, rgba(44, 240, 160, 0.18) 0%, rgba(44, 240, 160, 0) 70%),
        radial-gradient(40% 100% at 5% 100%, rgba(245, 197, 66, 0.12) 0%, rgba(245, 197, 66, 0) 70%),
        #050607;
    border: 1px solid rgba(44, 240, 160, 0.45);
    box-shadow: 0 0 22px -6px rgba(44, 240, 160, 0.45);
    color: #f4f6f7;
}
.bf-shop-banner__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2cf0a0;
    text-shadow: 0 0 5px rgba(44, 240, 160, 0.85), 0 0 14px rgba(44, 240, 160, 0.45);
}
.bf-shop-banner__sub {
    margin-top: 2px;
    font-size: 13px;
    color: #c4cad0;
}
.bf-shop-banner__sub strong { color: #F5C542; }
.bf-shop-banner__timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.bf-shop-banner__ends {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa3ab;
}
@media (max-width: 640px) {
    .bf-shop-banner { padding: 14px; }
    .bf-shop-banner__title { font-size: 16px; }
    .bf-shop-banner__timer { align-items: flex-start; }
}

/* ── Discounted prices: Black Friday tag, gold sale price, black cards ──── */
.bf-deal-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #050607;
    border: 1px solid rgba(44, 240, 160, 0.7);
    box-shadow: 0 0 8px rgba(44, 240, 160, 0.35);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.bf-deal-tag__k { color: #2cf0a0; text-shadow: 0 0 4px rgba(44, 240, 160, 0.6); }
.bf-deal-tag__pct { color: #F5C542; letter-spacing: 0.02em; }
.cp-deal-price { color: #F5C542 !important; text-shadow: 0 0 10px rgba(245, 197, 66, 0.25); }
.cp-was-price { color: #8a929a !important; text-decoration-color: rgba(255, 92, 92, 0.85) !important; text-decoration-thickness: 1.5px; }
.cp-deal-card {
    background: linear-gradient(135deg, #07090a 0%, #141819 100%) !important;
    border: 1px solid rgba(44, 240, 160, 0.45);
    box-shadow: 0 0 18px -6px rgba(44, 240, 160, 0.45) !important;
}
.cp-deal-card .cp-deal-icon { color: #F5C542 !important; }

/* ── Visitor toggle: turn the effects off (low-end machines) ─────────────── */
.bf-toggle {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(5, 6, 7, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(44, 240, 160, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #f4f6f7;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.bf-toggle:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.bf-toggle__icon {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 640px) {
    .bf-toggle { left: 10px; bottom: 10px; padding: 7px; }
    .bf-toggle__label { display: none; }
}

/* ── Respect reduced-motion: keep the look, drop the movement ───────────── */
@media (prefers-reduced-motion: reduce) {
    .bf-fx *,
    .bf-cat-hat,
    .bf-cat-bag,
    .bf-pricing-kicker,
    .bf-corner-balloons {
        animation: none !important;
    }

    /* park the balloons part-way up the screen; hide the falling bits */
    .bf-balloon { opacity: var(--op, 0.9); bottom: auto; top: 55vh; }
    .bf-popper,
    .bf-confetto { display: none; }
    .bf-bunch { bottom: -22px; }
}
