/* ==========================================================================
   DRS — Black Friday Week theme (loaded only while blackfriday_active(); see app/config/app.php).
   Art direction, "Blackout": a photo studio with the lights almost off. Black satin, liquid chrome,
   platinum buttons and one single infrared accent, kept for what is on sale and for "now".
   No emojis, no tape, no explosions. body.bf-off = the visitor turned the effects off.
   Only transform / opacity are animated (the metal sweeps of the titles move a background).
   ========================================================================== */

body.blackfriday {
    --bg: #050506;
    --surface: #0B0B0E;
    --surface-2: #131317;
    --border: #212127;
    --text: #F5F5F7;
    --muted: #9B9BA6;
    --primary: #E9EAEE;
    --secondary: #A9ACB8;
    --accent: var(--primary);
    --bf-ir: #FF2142;
    --bf-ir-hi: #FF5A6E;
    --bf-plat: #E9EAEE;
    --bf-line: rgba(233,234,238,.14);
    /* colours of the shared effects (season-fx.css) */
    --fx-metal: linear-gradient(180deg, #FFFFFF 14%, #C9CCD5 42%, #565963 54%, #B4B7C2 68%, #F4F5F7 90%);
    --fx-head: linear-gradient(180deg, #FFFFFF 22%, #B9BCC7 62%, #E4E5EA 92%);
    --fx-shine: #FFFFFF;
    --fx-accent: #FF2142;
    --fx-accent-hi: #FFB3BF;
    --fx-line: rgba(233,234,238,.14);
    --fx-spot: 255,255,255;
    --fx-ink: #050506;
    --fx-panel: #0A0A0D;
    --fx-band: rgba(0,0,0,.62);
    --fx-foil: linear-gradient(115deg, transparent 18%, rgba(255,33,66,.28) 34%, rgba(255,210,220,.20) 44%, rgba(150,185,255,.26) 54%, transparent 72%);
    --fx-flap-t: linear-gradient(180deg, #2B2C32, #1B1C20);
    --fx-flap-b: linear-gradient(180deg, #131317, #0A0A0C);
    --shadow-glow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.5);
    --shadow-glow-lg: 0 0 0 1px rgba(255,255,255,.14), 0 20px 50px rgba(0,0,0,.6);
}
body.blackfriday ::selection { background: var(--bf-ir); color: #fff; }

/* ---------- Studio instead of the starry sky ---------- */
body.blackfriday::before { background: var(--bg); animation: none; }
body.blackfriday::after {
    background:
        radial-gradient(60% 42% at 50% -8%, rgba(255,255,255,.075), transparent 70%),
        radial-gradient(42% 50% at -4% 100%, rgba(255,33,66,.085), transparent 70%),
        radial-gradient(40% 46% at 104% 88%, rgba(190,205,255,.05), transparent 70%);
}

/* ---------- Canvas ---------- */
.bf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.bf-hero.is-gl > .bf-canvas, .bf-canvas.is-gl { opacity: 1; }
.bf-canvas-page {
    position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1;
}
.bf-canvas-page.is-gl { opacity: .5; }
body.bf-off .bf-canvas { display: none; }

/* ---------- Announcement bar, header ---------- */
body.blackfriday .marquee-bar { background: #000; border-bottom: 1px solid var(--bf-line); color: #C9CAD2; }
.bf-marquee { color: #fff; }
.bf-marquee b { font-weight: 800; }
.bf-marquee i { font-style: normal; color: var(--bf-ir-hi); font-variant-numeric: tabular-nums; }
body.blackfriday .site-header { background: rgba(5,5,6,.94); }
body.blackfriday .nav-beta { background: transparent; color: var(--bf-plat); box-shadow: inset 0 0 0 1px rgba(233,234,238,.35); }
body.blackfriday .icon-btn { background: #0E0E11; border-color: #2A2A31; color: #C9CAD2; }
body.blackfriday .icon-btn:hover { border-color: #fff; color: #fff; }
body.blackfriday .site-header { border-bottom-color: var(--bf-line); }
body.blackfriday .site-header::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); }
body.blackfriday .cart-count { background: var(--bf-ir); color: #fff; }

/* ---------- Buttons: platinum ---------- */
body.blackfriday .btn-primary {
    color: #08080A; font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, #E7E8EC 46%, #C6C8D0 54%, #EDEEF1 100%);
    box-shadow: inset 0 1px 0 #fff;
}
body.blackfriday .btn-primary:hover { filter: none; background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F8 46%, #DADCE2 54%, #FFFFFF 100%); }
body.blackfriday .btn-ghost { border-color: rgba(233,234,238,.22); }
body.blackfriday .btn-ghost:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.05); }
body.blackfriday .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.blackfriday .store-tab.is-active { color: #08080A; background: linear-gradient(180deg, #FFFFFF, #D3D5DC); }
body.blackfriday .store-tab.is-active span { background: rgba(0,0,0,.14); color: #08080A; }
body.blackfriday .filter-chip.is-active { color: #08080A; background: var(--bf-plat); border-color: var(--bf-plat); }
body.blackfriday .filter-chip.is-active span { color: #3B3B44; }
body.blackfriday .filter-chip-sale { border-color: rgba(255,33,66,.55); color: var(--bf-ir-hi); }
body.blackfriday .filter-chip-sale.is-active { background: var(--bf-ir); border-color: var(--bf-ir); color: #fff; }
body.blackfriday .filter-chip-sale.is-active span { color: #fff; }

/* ---------- Leftover indigo of the base theme ---------- */
body.blackfriday .text-gradient, body.blackfriday .error-code {
    background-image: linear-gradient(180deg, #FFFFFF 10%, #C3C5CE 48%, #8D909B 62%, #DCDDE3 100%);
}
body.blackfriday .eyebrow, body.blackfriday .section-head .eyebrow { color: #B9BBC6; }
body.blackfriday .stat strong { background-image: linear-gradient(180deg, #FFFFFF 20%, #A4A6B1); }
body.blackfriday .ico-badge { color: var(--bf-plat); border-color: var(--bf-line); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); }
body.blackfriday .how-num { color: rgba(255,255,255,.09); }
body.blackfriday .feature-media-logo::before, body.blackfriday .feature-media-logo::after, body.blackfriday .hero-art-glow { filter: grayscale(1) brightness(.8) blur(40px); }
body.blackfriday .code-window { box-shadow: 0 30px 80px -30px rgba(255,255,255,.16); }
body.blackfriday .cookie-notice { background: #0E0E11; }
body.blackfriday .keyword-strip { background: #000; }
body.blackfriday .keyword-strip .marquee-track span::before { background: var(--bf-ir); }
body.blackfriday .stats-strip { background: rgba(0,0,0,.45); }
body.blackfriday .ai-fab { background: #111115; border: 1px solid rgba(233,234,238,.3); box-shadow: 0 14px 34px rgba(0,0,0,.6); }
body.blackfriday .ai-fab::before { border-color: rgba(233,234,238,.3); box-shadow: none; }

body.blackfriday .promo-dialog { border-color: rgba(233,234,238,.3); background: #0B0B0E; }
body.blackfriday .promo-dialog .badge { color: #fff; background: #000; border-color: rgba(255,255,255,.4); }

/* ---------- Hero ---------- */
.bf-hero { position: relative; overflow: hidden; background: #050506; isolation: isolate; }
.bf-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 0; pointer-events: none;
    background: linear-gradient(transparent, rgba(5,5,6,.9) 78%, #050506);
}
.bf-hero-in {
    position: relative; z-index: 1;
    min-height: min(calc(100vh - 112px), 860px);
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(20px, 3.4vh, 50px) 0 clamp(72px, 9vh, 92px);
}
.bf-stage {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: "a a a a a a a a s s s s" "t t t t b b b b b b b b";
    align-items: center; row-gap: clamp(0px, .6vw, 10px);
}
.bf-title { display: contents; }
.bf-word {
    display: block; width: max-content; justify-self: start;
    font-family: var(--font-display); font-style: italic; font-weight: 900;
    font-size: clamp(4.4rem, min(15vw, 26vh), 13.4rem); line-height: .88; letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
    background: linear-gradient(180deg, #FFFFFF 8%, #D7D9E0 40%, #5B5E69 52%, #A9ACB8 66%, #F3F4F6 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bf-word-1 { grid-area: a; padding-right: .065em; }
.bf-word-2 { grid-area: b; justify-self: end; padding-right: .065em; }
.bf-hero.is-gl .bf-word { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
body.bf-off .bf-hero.is-gl .bf-word {
    background: linear-gradient(180deg, #FFFFFF 8%, #D7D9E0 40%, #5B5E69 52%, #A9ACB8 66%, #F3F4F6 92%);
    -webkit-background-clip: text; background-clip: text;
}
.bf-hero ::selection { background: transparent; }

.bf-side-1 { grid-area: s; justify-self: end; text-align: right; }
.bf-side-2 { grid-area: t; padding-right: 20px; }
.bf-side p { margin: 0; }
.bf-kicker { color: var(--bf-plat); font-size: .95rem; font-weight: 600; }
.bf-week {
    margin: 2px 0 6px !important; font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: #fff; padding-right: .06em;
}
.bf-dates { color: #C9CAD2; font-size: .95rem; font-weight: 500; }
.bf-lead { max-width: 30ch; color: #C9CAD2; font-size: 1.02rem; line-height: 1.6; text-wrap: pretty; }
.bf-upto { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px !important; color: #fff; }
.bf-upto small { color: #C9CAD2; font-size: 1rem; }
.bf-upto b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1; color: var(--bf-ir); }

.bf-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; margin-top: clamp(24px, 4.4vh, 46px); }
.bf-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bf-coupon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px dashed rgba(255,255,255,.4); border-radius: var(--radius-sm); background: rgba(0,0,0,.45); color: #C9CAD2; cursor: pointer; }
.bf-coupon code { color: #fff; font-weight: 700; letter-spacing: .08em; }
.bf-coupon:hover { border-color: #fff; }

.bf-count-label { margin: 0 0 10px; display: flex; gap: 10px; justify-content: flex-end; color: #C9CAD2; font-size: .92rem; font-weight: 500; }
.bf-count-label span { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.bf-count-label span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bf-ir); animation: bf-live 2s ease-in-out infinite; }
@keyframes bf-live { 50% { opacity: .25; } }
.bf-count-row { display: flex; gap: 14px; }
.bf-cd { display: flex; flex-direction: column; align-items: center; }
.bf-cd b { display: flex; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.bf-cd small { margin-top: 10px; color: #A9ABB6; font-size: .78rem; }

/* ---------- The eight days ---------- */
.bf-days { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; margin: clamp(22px, 3.8vh, 40px) 0 0; padding: 0; border-top: 1px solid var(--bf-line); }
.bf-day { position: relative; padding: 14px 0 0; color: #8E909B; }
.bf-day::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; transform-origin: left; transform: scaleX(0); background: var(--bf-plat); }
.bf-day.is-past::before { transform: scaleX(1); opacity: .55; }
.bf-day.is-today::after { content: ""; position: absolute; left: 0; top: -46px; width: 100%; height: 92px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(255,33,66,.22), transparent); }
.bf-day.is-today::before { transform: scaleX(1); background: var(--bf-ir); box-shadow: 0 0 18px 2px rgba(255,33,66,.6); }
.bf-day-name { display: block; font-size: .82rem; font-weight: 500; }
.bf-day b { display: inline-block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.7rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bf-day small { display: block; min-height: 1.4em; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.bf-day.is-key { color: #fff; }
.bf-day.is-key small { color: #C9CAD2; }
.bf-day.is-today { color: #fff; }
.bf-day.is-today small { color: var(--bf-ir-hi); }
.bf-day.is-past { color: #5F616B; }

/* ---------- Product cards: they tilt, an edge of light follows the mouse and the cover is a foil ---------- */
body.blackfriday :is(.product-card, .base-card) { position: relative; background: rgba(11,11,14,.88); }
body.blackfriday :is(.how-step, .accordion-item) { background-color: rgba(11,11,14,.88); }
body.blackfriday .product-card:hover, body.blackfriday .card-hover:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 60px -20px rgba(255,255,255,.16); }
body.blackfriday :is(.product-card, .base-card, .how-step)::after {
    content: ""; position: absolute; inset: -1px; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--bx, 50%) var(--by, 0%), #FFFFFF, rgba(255,255,255,.35) 38%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s ease;
}
body.blackfriday:not(.bf-off) :is(.product-card, .base-card, .how-step):hover::after { opacity: 1; }
body.blackfriday .product-card-badges { z-index: 2; }
body.blackfriday .product-card:hover .product-card-footer .btn-ghost { background: var(--bf-plat); border-color: var(--bf-plat); color: #08080A; }
body.blackfriday .badge-sale { background: var(--bf-ir); border-color: var(--bf-ir); color: #fff; font-weight: 800; }
body.blackfriday .badge-bf { background: #000; border-color: rgba(255,255,255,.5); color: #fff; }
body.blackfriday .product-card-badges:has(.badge-bf) :is(.badge-popular, .badge-updated) { display: none; }
body.blackfriday .filter-list a.is-active { background: rgba(255,255,255,.09); color: #fff; }
body.blackfriday .store-sort select, body.blackfriday select { background-color: #0E0E11; border-color: #2A2A31; }
body.blackfriday .price-old { text-decoration-color: var(--bf-ir); text-decoration-thickness: 2px; }
.bf-deals { padding-bottom: 24px; }
.bf-deals .section-head-row { flex-wrap: wrap; }

/* ---------- Store strip ---------- */
.bf-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--bf-line); }
.store-hero .bf-strip p { margin: 0; max-width: none; }
.bf-strip .bf-strip-title {
    font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.1rem, 5.4vw, 4.4rem); line-height: 1; text-transform: uppercase; padding-right: .08em;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%) 120% 0 / 260% 100% no-repeat, linear-gradient(180deg, #FFFFFF 10%, #D3D5DD 40%, #50535D 53%, #AEB1BC 68%, #F4F5F7 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bf-strip-title span { font-weight: 300; }
body.blackfriday:not(.bf-off) .bf-strip-title { animation: bf-sweep 6s ease-in-out infinite; }
@keyframes bf-sweep { 0%, 55% { background-position: 120% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.store-hero .bf-strip .bf-strip-phase { margin-left: auto; color: #fff; font-weight: 700; }
.bf-strip-phase span { color: #A9ABB6; font-weight: 500; }
.bf-strip-phase b { color: var(--bf-ir-hi); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
body.blackfriday .site-footer { background: linear-gradient(180deg, rgba(0,0,0,.72), #050506 70%); border-top-color: var(--bf-line); }
body.blackfriday .site-footer::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); }

/* the countdown got to zero: the lights go out and the page comes back in the new phase */
body.blackfriday.bf-blackout::before { z-index: 999; background: #000; animation: bf-out .9s ease-in both; }
@keyframes bf-out { 0% { opacity: 0; } 20% { opacity: .9; } 30% { opacity: .2; } 45% { opacity: .95; } 55% { opacity: .5; } 100% { opacity: 1; } }

/* ---------- On/off button ---------- */
.bf-toggle {
    position: fixed; left: 16px; bottom: 16px; z-index: 84; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: var(--bf-plat);
    border: 1px solid rgba(233,234,238,.3); background: rgba(5,5,6,.92); box-shadow: 0 10px 28px rgba(0,0,0,.5);
    transition: transform .5s cubic-bezier(.2,.9,.3,1), border-color .2s, opacity .2s;
}
.bf-toggle svg { width: 22px; height: 22px; }
.bf-toggle:hover { transform: rotate(180deg); border-color: #fff; }
.bf-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.bf-off .bf-toggle { opacity: .55; transform: rotate(180deg); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
    .bf-cd b { font-size: 2.2rem; }
}
@media (max-width: 860px) {
    .bf-hero-in { min-height: 0; padding: 34px 0 30px; }
    .bf-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s" "a" "b" "t"; row-gap: 0; }
    .bf-word { font-size: min(21vw, 9rem); line-height: .94; }
    .bf-word-2 { justify-self: start; }
    .bf-side-1 { justify-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; margin-bottom: 10px; }
    .bf-week { display: none; }
    .bf-side-2 { padding: 18px 0 0; }
    .bf-lead { max-width: 46ch; }
    .bf-row { align-items: stretch; flex-direction: column; }
    .bf-actions .btn { flex: 1 1 auto; }
    .bf-count-label { justify-content: flex-start; flex-wrap: wrap; }
    .bf-count-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bf-cd b { font-size: clamp(1.6rem, 8.2vw, 2.5rem); }
    .bf-days { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; border-top: 0; }
    .bf-day { border-top: 1px solid var(--bf-line); padding-top: 10px; }
    .bf-day b { font-size: 1.4rem; }
    .bf-day small { font-size: .74rem; white-space: normal; line-height: 1.25; padding-right: 6px; }
    .product-card .badge-bf { display: none; }
    .bf-toggle { width: 38px; height: 38px; left: 10px; bottom: 10px; }
    .bf-toggle svg { width: 19px; height: 19px; }
}

@media (max-width: 860px) {
    .bf-count-row { gap: 8px; }
    .store-hero .bf-strip .bf-strip-phase { margin-left: 0; width: 100%; }
    .bf-strip { margin-bottom: 20px; padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-count-label span::before { animation: none; }
    .bf-canvas, .bf-toggle { transition: none; }
    body.blackfriday .bf-strip-title { animation: none !important; }
    .bf-toggle:hover { transform: none; }
}

@media print { .bf-canvas, .bf-toggle { display: none; } }

/* ==========================================================================
   Black Week offers: page /black-week (pages/black-week.php), the pop-up (partials/offer.php) and the
   menu entry. Same Blackout rules: platinum on black, infrared only for what matters now.
   ========================================================================== */
.bw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bf-ir); box-shadow: 0 0 0 0 rgba(255,33,66,.6); animation: bw-pulse 2s ease-out infinite; }
@keyframes bw-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,33,66,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255,33,66,0); } }

.nav-drop-menu a.nav-drop-hot .nav-drop-ico { color: var(--bf-ir); border-color: rgba(255,33,66,.4); }
.nav-drop-menu a.nav-drop-hot strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: middle; border-radius: 50%; background: var(--bf-ir); }

/* hero */
.bw-hero { position: relative; padding: clamp(56px, 10vh, 110px) 0 clamp(28px, 5vh, 48px); }
.bw-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #C9CAD2; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.bw-title { margin: 0 0 18px; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.03em; background: var(--fx-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bw-lead { max-width: 56ch; margin: 0; color: #C9CAD2; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; text-wrap: pretty; }
.bw-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: 30px; }
.bw-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bw-left { margin: 0; color: var(--muted); font-size: .95rem; }
.bw-left b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; margin-left: 6px; }

/* tiers */
.bw-tiers-wrap { padding-top: 12px; }
.bw-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.bw-tier { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, #111115, #09090B); overflow: hidden; }
.bw-tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.bw-tier.is-top { border-color: rgba(255,33,66,.45); box-shadow: 0 0 0 1px rgba(255,33,66,.12), 0 30px 80px -40px rgba(255,33,66,.5); }
.bw-tier.is-top::before { background: linear-gradient(90deg, transparent, var(--bf-ir), transparent); }
.bw-best { position: absolute; top: 18px; right: 18px; padding: 4px 9px; border-radius: 999px; background: var(--bf-ir); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bw-min { margin: 0; color: #C9CAD2; font-size: .9rem; font-weight: 600; }
.bw-pct { margin: 10px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(3.6rem, 7vw, 5rem); line-height: .9; letter-spacing: -.04em; color: #fff; }
.bw-pct span { color: var(--bf-ir); margin-right: 2px; }
.bw-pct small { font-size: .5em; letter-spacing: 0; color: #C9CAD2; }
.bw-pct-sub { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.bw-gifts { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--bf-line); flex: 1; }
.bw-gifts-label { margin: 0 0 12px; color: #fff; font-weight: 800; font-size: .95rem; }
.bw-gifts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bw-gifts a { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s; }
.bw-gifts a:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.bw-gifts img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #000; }
.bw-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.bw-code { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.32); border-radius: var(--radius-sm); background: rgba(0,0,0,.4); color: var(--muted); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.bw-code:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.bw-code span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bw-code code { color: #fff; font-size: 1.02rem; font-weight: 800; letter-spacing: .06em; background: none; padding: 0; }
.bw-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }

/* the 7 offers, one per row */
.bw-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bf-line); }
.bw-rows li { display: grid; grid-template-columns: 34px 150px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--bf-line); }
.bw-row-n { color: #6E707B; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bw-row-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-row-what strong { color: #fff; font-size: 1rem; }
.bw-row-what small { color: var(--muted); font-size: .86rem; }
.bw-row-base .bw-row-n, .bw-row-base .bw-code-plain code { color: var(--bf-ir); }
.bw-code-plain { border-style: solid; border-color: rgba(255,33,66,.4); }

/* how to */
.bw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bw-steps li { padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0A0A0C; }
.bw-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 800; }
.bw-steps h3 { margin: 16px 0 6px; font-size: 1.02rem; }
.bw-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.bw-example { margin-top: 18px; padding: 18px 20px; border-left: 2px solid var(--bf-ir); border-radius: 0 12px 12px 0; background: #0C0C0F; }
.bw-example p { margin: 0; color: #C9CAD2; }
.bw-example-label { font-size: .72rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-ir) !important; margin-bottom: 6px !important; }
.bw-example-codes { margin-top: 10px !important; }
.bw-example-codes code { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #000; border: 1px solid var(--border); color: #fff; font-weight: 800; letter-spacing: .06em; }

/* bases */
.bw-bases-card { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(255,33,66,.35); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, rgba(255,33,66,.16), transparent 55%), #0A0A0C; }
.bw-bases-card h2 { margin: 6px 0 12px; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.08; }
.bw-bases-card > div > p { color: #C9CAD2; line-height: 1.65; margin: 0 0 18px; max-width: 60ch; }
.bw-bases-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; color: var(--text); font-size: .95rem; }
.bw-bases-list li { display: flex; gap: 10px; align-items: flex-start; }
.bw-bases-list svg { color: var(--bf-ir); flex: none; margin-top: 3px; }
.bw-bases-value { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 18px; border: 1px solid var(--bf-line); border-radius: 16px; background: rgba(0,0,0,.4); text-align: center; }
.bw-bases-value span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bw-bases-value s { color: #8E909B; font-size: 1.5rem; font-weight: 700; }
.bw-bases-value b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }

/* faq */
.bw-faq-list { display: grid; gap: 10px; max-width: 860px; }
.bw-faq-list details { border: 1px solid var(--border); border-radius: 14px; background: #0A0A0C; }
.bw-faq-list summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font-weight: 700; color: #fff; }
.bw-faq-list summary::-webkit-details-marker { display: none; }
.bw-faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
.bw-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bw-faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }
.bw-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 860px; margin-top: 26px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; }
.bw-help p { margin: 0; color: #C9CAD2; font-weight: 600; }

/* pop-up */
.offer-bw .offer-card { max-width: 440px; background: linear-gradient(180deg, #121216, #08080A); border-color: rgba(255,33,66,.35); box-shadow: 0 40px 120px -40px rgba(255,33,66,.45); }
.offer-bw .offer-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,33,66,.12); color: #FFB3BF; }
.offer-bw .offer-card h2 { font-weight: 900; letter-spacing: -.02em; }
.offer-bw-tiers { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--bf-line); text-align: left; }
.offer-bw-tiers li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--bf-line); }
.offer-bw-min { color: #C9CAD2; font-weight: 600; font-size: .92rem; }
.offer-bw-tiers b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; color: #fff; }
.offer-bw-gift { justify-self: end; color: var(--bf-ir-hi); font-size: .85rem; font-weight: 700; }
.offer-later { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.offer-later:hover { color: var(--text); }

/* featured deal (config blackfriday.featured): the heist bundle */
.bw-deal-wrap { padding-top: 8px; padding-bottom: 8px; }
.bw-deal { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 40px); align-items: center; padding: clamp(18px, 2.6vw, 28px); border: 1px solid rgba(255,33,66,.45); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 0% 0%, rgba(255,33,66,.14), transparent 55%), linear-gradient(180deg, #111115, #09090B); box-shadow: 0 0 0 1px rgba(255,33,66,.1), 0 40px 100px -50px rgba(255,33,66,.55); }
.bw-deal-img { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--bf-line); background: #000; aspect-ratio: 16 / 9; }
.bw-deal-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bw-deal-img:hover img { transform: scale(1.03); }
.bw-deal-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--bf-ir); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; box-shadow: 0 8px 24px -6px rgba(255,33,66,.7); }
.bw-deal-body .bw-eyebrow { margin-bottom: 12px; }
.bw-deal-body h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.bw-deal-text { margin: 0 0 18px; color: #C9CAD2; line-height: 1.65; }
.bw-deal-facts { list-style: none; display: flex; gap: 10px; margin: 0 0 20px; padding: 0; }
.bw-deal-facts li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--bf-line); border-radius: 12px; background: rgba(0,0,0,.35); }
.bw-deal-facts b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.bw-deal-facts span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bw-deal-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.bw-deal-price { margin: 0; color: #8E909B; font-size: 1.05rem; }
.bw-deal-price s { text-decoration-color: var(--bf-ir); text-decoration-thickness: 2px; }
.bw-deal-price b { margin-left: 6px; font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: #fff; }
.bw-deal-note { margin: 14px 0 0; color: var(--muted); font-size: .85rem; }
.offer-bw-deal { display: block; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(255,33,66,.5); border-radius: 12px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,33,66,.18), transparent 60%), rgba(0,0,0,.35); color: var(--text); text-align: left; text-decoration: none; transition: border-color .2s; }
.offer-bw-deal:hover { border-color: var(--bf-ir); }
.offer-bw-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--bf-ir-hi); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.offer-bw-deal-top b { padding: 2px 8px; border-radius: 999px; background: var(--bf-ir); color: #fff; font-size: .85rem; letter-spacing: 0; }
.offer-bw-deal strong { display: block; margin: 6px 0 4px; color: #fff; font-size: 1.02rem; }
.offer-bw-deal-price { display: block; color: #C9CAD2; font-size: .86rem; }
.offer-bw-deal-price s { color: #8E909B; margin-right: 2px; }
.offer-bw-deal-price code { padding: 2px 6px; border-radius: 6px; background: #000; border: 1px dashed rgba(255,255,255,.35); color: #fff; font-weight: 800; letter-spacing: .04em; }

@media (max-width: 960px) {
    .bw-deal { grid-template-columns: 1fr; }
    .bw-tiers { grid-template-columns: 1fr; max-width: 520px; }
    .bw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bw-bases-card { grid-template-columns: 1fr; }
    .bw-bases-value { flex-direction: row; justify-content: center; gap: 14px; }
}
@media (max-width: 560px) {
    .bw-steps { grid-template-columns: 1fr; }
    .bw-rows li { grid-template-columns: 26px minmax(0, 1fr); gap: 8px 12px; }
    .bw-rows .bw-code { grid-column: 2; justify-self: start; }
    .bw-rows .bw-row-what { grid-column: 2; }
    .bw-hero-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .bw-dot { animation: none; } }
