/* ═══════════════════════════════════════════════
   Promo kit: Black Friday page, pricing page, home page sale strip.
   Markup: page-black-friday.php, template-parts/promo/*. Script: js/black-friday.js.
   Loaded only where needed (see rank_bix_enqueue_assets in functions.php).
   ═══════════════════════════════════════════════ */

:root {
  --bf-night: #05070f;
  --bf-night-2: #0b1230;
  --bf-gold: #ffc83d;
  --bf-gold-2: #ff9f1c;
  --bf-gold-grad: linear-gradient(100deg, #fff1b8 0%, #ffd34d 30%, #ff9f1c 55%, #ffe58a 75%, #fff6d6 100%);
  --bf-blue: #1f6bff;
  --bf-pink: #ff3d81;
  --bf-btn-bg: linear-gradient(180deg, #ffe07a, #ffb020);
  --bf-on-accent: #1a1000;
  --bf-glow: rgba(255, 180, 40, .45);
}
.rb-bf, .rb-bf-wrap { overflow-x: clip; }

.rb-bf .screen-reader-text, .rb-bf-hero .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;
}

/* ── Shared bits ─────────────────────────────── */
.rb-bf-gold-text {
  background: var(--bf-gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rb-bf-shine 6s linear infinite;
}
.rb-bf-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem; border-radius: 999px;
  background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .35);
  color: var(--bf-gold); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.rb-bf-live { width: 8px; height: 8px; border-radius: 50%; background: #ff3d57; box-shadow: 0 0 0 0 rgba(255, 61, 87, .7); animation: rb-bf-ping 1.6s infinite; }
.rb-bf-kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #b45309; background: #fff4d6; padding: .35rem .8rem; border-radius: 999px;
}
.rb-bf-kicker--dark { color: var(--bf-gold); background: rgba(255, 200, 61, .1); }
.rb-bf-h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 1rem 0 0; }
.rb-bf-h2--light { color: #fff; }
.rb-bf-hl { position: relative; white-space: nowrap; z-index: 0; }
.rb-bf-hl::after {
  content: ""; position: absolute; left: -.1em; right: -.1em; bottom: .05em; height: .38em; z-index: -1;
  background: linear-gradient(90deg, #ffd34d, #ff9f1c); border-radius: 4px; transform: skewX(-12deg);
}
.rb-bf-strike { margin-right: .3em; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 4px; text-decoration-color: var(--bf-pink); font-weight: 700; }
.rb-bf-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.rb-bf-head p { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }

.rb-bf-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 1.9rem; border-radius: 14px; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  color: var(--bf-on-accent); background: var(--bf-btn-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 32px -8px rgba(255, 170, 30, .65), 0 0 0 1px rgba(255, 190, 60, .6);
  transition: transform .15s ease, box-shadow .2s ease;
}
.rb-bf-btn::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); animation: rb-bf-sweep 3.2s ease-in-out infinite;
}
.rb-bf-btn:hover { transform: translateY(-2px); color: var(--bf-on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -8px rgba(255, 170, 30, .8), 0 0 0 1px rgba(255, 190, 60, .8); }
.rb-bf-btn--sm { padding: .7rem 1.2rem; font-size: .9rem; border-radius: 11px; }

/* ── HERO ────────────────────────────────────── */
.rb-bf-hero {
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, var(--bf-night-2) 0%, var(--bf-night) 60%);
}
.rb-bf-hero-inner { position: relative; z-index: 2; max-width: 60rem; margin: 0 auto; padding: 5.5rem 1.5rem 6rem; }

.rb-bf-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .75; }
.rb-bf-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.rb-bf-aurora i:nth-child(1) { width: 42rem; height: 42rem; left: -12rem; top: -14rem; background: radial-gradient(circle, rgba(31, 107, 255, .75), transparent 65%); animation: rb-bf-drift1 18s ease-in-out infinite alternate; }
.rb-bf-aurora i:nth-child(2) { width: 36rem; height: 36rem; right: -10rem; top: -6rem; background: radial-gradient(circle, rgba(255, 61, 129, .5), transparent 65%); animation: rb-bf-drift2 22s ease-in-out infinite alternate; }
.rb-bf-aurora i:nth-child(3) { width: 40rem; height: 30rem; left: 25%; bottom: -16rem; background: radial-gradient(circle, var(--bf-glow), transparent 65%); animation: rb-bf-drift3 20s ease-in-out infinite alternate; }
.rb-bf-aurora--soft { opacity: .55; }

.rb-bf-floor {
  position: absolute; left: -50%; right: -50%; bottom: -2px; height: 55%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(420px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: rb-bf-floor 2.4s linear infinite;
}
.rb-bf-stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #ffe9a8, transparent), radial-gradient(1px 1px at 63% 35%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 14%, #fff, transparent), radial-gradient(1px 1px at 88% 48%, #ffe9a8, transparent),
    radial-gradient(1px 1px at 6% 44%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 28%, #fff, transparent),
    radial-gradient(1px 1px at 36% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 8%, #fff, transparent);
  animation: rb-bf-twinkle 5s ease-in-out infinite alternate;
}
.rb-bf-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 210, 90, .13), transparent 60%);
  transition: background .1s;
}

/* Mega 70% */
.rb-bf-h1 { margin: 1.75rem 0 0; font-weight: 800; }
.rb-bf-mega { display: inline-flex; align-items: center; gap: .1em; line-height: .82; font-size: clamp(7rem, 24vw, 15rem); letter-spacing: -.06em; }
.rb-bf-mega-num {
  position: relative; font-weight: 900;
  background: var(--bf-gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(255, 170, 30, .35));
  animation: rb-bf-shine 5s linear infinite, rb-bf-pop .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.rb-bf-mega-num::after { /* outline echo behind */
  content: attr(data-text); position: absolute; left: .04em; top: .04em; z-index: -1;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 200, 61, .35);
}
.rb-bf-mega-side { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .06em; animation: rb-bf-rise .9s .25s cubic-bezier(.2, 1, .3, 1) both; }
.rb-bf-mega-pct { font-size: .48em; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.rb-bf-mega-off {
  font-size: .24em; font-weight: 900; letter-spacing: .08em; color: var(--bf-night);
  background: var(--bf-gold); padding: .08em .22em .04em; border-radius: .12em; transform: rotate(-6deg);
  box-shadow: 0 8px 24px -6px rgba(255, 180, 40, .7);
}
.rb-bf-headline { display: block; margin-top: 1.25rem; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; animation: rb-bf-rise .8s .35s both; }
.rb-bf-lead { max-width: 38rem; margin: 1.25rem auto 0; font-size: 1.125rem; line-height: 1.65; color: rgba(255, 255, 255, .72); animation: rb-bf-rise .8s .45s both; }
.rb-bf-lead strong { color: var(--bf-gold); }

/* Countdown */
.rb-bf-clock { display: flex; justify-content: center; align-items: flex-start; gap: .6rem; margin-top: 2.5rem; animation: rb-bf-rise .8s .55s both; }
.rb-bf-tile {
  position: relative; min-width: 6rem; padding: 1rem .5rem .8rem; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.rb-bf-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.rb-bf-digits { display: block; font-size: 3rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -.02em; }
.rb-bf-digits.is-flip { animation: rb-bf-flip .45s cubic-bezier(.3, 1.4, .5, 1); }
.rb-bf-tile small { display: block; margin-top: .55rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.rb-bf-colon { font-size: 2.6rem; font-weight: 800; line-height: 1.6; color: rgba(255, 200, 61, .6); animation: rb-bf-blink 1s steps(2) infinite; }

/* Actions + ticket */
.rb-bf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; animation: rb-bf-rise .8s .65s both; }
.rb-bf-ticket {
  --hole: 9px;
  position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .9rem; align-items: center;
  padding: .6rem 1.4rem; font-family: inherit; text-align: left; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1.5px dashed rgba(255, 200, 61, .65); border-radius: 12px;
  -webkit-mask: radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: background .2s, transform .15s;
}
.rb-bf-ticket:hover { background: rgba(255, 200, 61, .12); transform: rotate(-1.5deg) scale(1.03); }
.rb-bf-ticket-label { grid-column: 1; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.rb-bf-ticket-code { grid-column: 1; font-size: 1.5rem; font-weight: 900; letter-spacing: .14em; color: var(--bf-gold); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rb-bf-ticket-hint { grid-column: 2; grid-row: 1 / span 2; padding-left: .9rem; border-left: 1.5px dashed rgba(255, 255, 255, .2); font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .7); }
.rb-bf-ticket.is-copied .rb-bf-ticket-hint { color: #4ade80; }

.rb-bf-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: rgba(255, 255, 255, .6); animation: rb-bf-rise .8s .75s both; }
.rb-bf-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.rb-bf-trust li::before { content: "✓"; font-weight: 900; color: #4ade80; }

.rb-bf-hero--ended .rb-bf-hero-inner { padding: 7rem 1.5rem; }
.rb-bf-hero--ended .rb-bf-headline { font-size: clamp(2.2rem, 6vw, 4rem); }

/* ── CROSSED RIBBONS ─────────────────────────── */
.rb-bf-ribbons { position: relative; height: 150px; margin: -75px 0 -40px; z-index: 3; pointer-events: none; }
.rb-bf-ribbon { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: .9rem 0; white-space: nowrap; }
.rb-bf-ribbon--front { transform: translateY(-50%) rotate(-3deg); background: var(--bf-gold-grad); box-shadow: 0 18px 40px -14px rgba(255, 160, 30, .6); }
.rb-bf-ribbon--back { transform: translateY(-50%) rotate(2.5deg); background: #0b0f1f; border-block: 1px solid rgba(255, 255, 255, .08); }
.rb-bf-track { display: inline-flex; align-items: center; gap: 1.5rem; animation: rb-bf-marquee 38s linear infinite; }
.rb-bf-track--rev { animation-direction: reverse; animation-duration: 46s; }
.rb-bf-track span { font-size: 1.15rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rb-bf-track i { font-style: normal; font-size: 1rem; }
.rb-bf-ribbon--front span, .rb-bf-ribbon--front i { color: var(--bf-on-accent); }
.rb-bf-ribbon--back span { color: rgba(255, 255, 255, .85); }
.rb-bf-ribbon--back i { color: var(--bf-gold); }

/* ── PRICING ─────────────────────────────────── */
.rb-bf-pricing { position: relative; padding-top: 5rem; scroll-margin-top: 70px; background: radial-gradient(60rem 26rem at 50% 30%, rgba(255, 200, 61, .14), transparent 70%); }
.rb-bf-pricing .card { transition: transform .25s ease, box-shadow .25s ease; }
.rb-bf-pricing .card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(10, 23, 51, .35); }
.rb-bf-pricing .rb-price-save { display: inline-block; background: #dcfce7; color: #047857; padding: .1rem .45rem; border-radius: 6px; }

/* ── LIFETIME CALCULATOR ─────────────────────── */
.rb-bf-calc-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
.rb-bf-calc {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 72rem; margin: 0 auto; padding: 3.25rem; border-radius: 28px; color: #fff;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
  background: radial-gradient(40rem 20rem at 0% 0%, rgba(31, 107, 255, .35), transparent 70%),
              radial-gradient(30rem 20rem at 100% 100%, rgba(255, 180, 40, .22), transparent 70%), var(--bf-night);
  box-shadow: 0 40px 80px -30px rgba(5, 7, 15, .6);
}
.rb-bf-calc-copy p { margin-top: 1rem; color: rgba(255, 255, 255, .7); font-size: 1.05rem; line-height: 1.6; }
.rb-bf-seg { display: inline-flex; gap: .25rem; margin-top: 1.75rem; padding: .3rem; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.rb-bf-seg button { font-family: inherit; font-size: .9rem; font-weight: 700; color: rgba(255, 255, 255, .7); background: none; border: 0; padding: .55rem 1.1rem; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.rb-bf-seg button[aria-selected="true"] { background: var(--bf-gold); color: var(--bf-on-accent); }
.rb-bf-range { display: block; margin-top: 1.75rem; }
.rb-bf-range > span { display: block; font-size: .95rem; color: rgba(255, 255, 255, .8); margin-bottom: .75rem; }
.rb-bf-range b { color: var(--bf-gold); font-size: 1.15rem; }
.rb-bf-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--bf-gold) var(--fill, 44%), rgba(255, 255, 255, .15) var(--fill, 44%)); outline: none; cursor: pointer; }
.rb-bf-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--bf-gold); box-shadow: 0 4px 14px rgba(255, 180, 40, .6); }
.rb-bf-range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--bf-gold); box-shadow: 0 4px 14px rgba(255, 180, 40, .6); }
.rb-bf-range input:focus-visible { box-shadow: 0 0 0 3px rgba(255, 200, 61, .4); }

.rb-bf-calc-result { padding: 2rem; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.rb-bf-bar + .rb-bf-bar { margin-top: 1.25rem; }
.rb-bf-bar-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: .5rem; }
.rb-bf-bar-top b { font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }
.rb-bf-bar-track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rb-bf-bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bf-gold-grad); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.rb-bf-bar-fill--grey { background: linear-gradient(90deg, #64748b, #94a3b8); }
.rb-bf-verdict { margin: 1.75rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px dashed rgba(255, 255, 255, .15); }
.rb-bf-verdict small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.rb-bf-verdict strong { display: block; margin-top: .25rem; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #4ade80; }
.rb-bf-verdict span { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.rb-bf-verdict.is-neg strong { color: var(--bf-gold); }

/* ── FEATURES BENTO ──────────────────────────── */
.rb-bf-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.rb-bf-cell {
  --x: 50%; --y: 50%;
  position: relative; padding: 1.75rem; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rb-bf-cell--wide { grid-column: span 2; }
.rb-bf-cell::before { /* glowing border that follows the pointer */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--x) var(--y), #ffb020, rgba(31, 107, 255, .7) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.rb-bf-cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--x) var(--y), rgba(255, 200, 61, .1), transparent 60%); }
.rb-bf-bento:hover .rb-bf-cell::before, .rb-bf-cell:hover::after { opacity: 1; }
.rb-bf-cell:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(10, 23, 51, .3); }
.rb-bf-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; color: #b45309; background: linear-gradient(135deg, #fff4d6, #ffe2a3); box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .12); }
.rb-bf-cell h3 { margin: 1.1rem 0 0; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.rb-bf-cell p { margin: .5rem 0 0; font-size: .925rem; line-height: 1.55; color: var(--muted); }
.rb-bf-more { text-align: center; margin-top: 2.25rem; }
.rb-bf-more a { font-weight: 700; color: var(--brand-2); text-decoration: none; }
.rb-bf-more a:hover { text-decoration: underline; }

.rb-bf-features { background: var(--bg-soft); }

/* ── FINAL CTA ───────────────────────────────── */
.rb-bf-final { padding-left: 1.5rem; padding-right: 1.5rem; }
.rb-bf-final-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  max-width: 64rem; margin: 0 auto; padding: 4.5rem 2rem; border-radius: 32px;
  background: var(--bf-night); box-shadow: 0 40px 80px -30px rgba(5, 7, 15, .6);
}
.rb-bf-final-card .rb-bf-h2 { max-width: 40rem; margin-left: auto; margin-right: auto; margin-top: 1.25rem; }
.rb-bf-clock--sm { margin-top: 2rem; animation: none; }
.rb-bf-clock--sm .rb-bf-tile { min-width: 4.75rem; padding: .8rem .4rem .65rem; border-radius: 14px; }
.rb-bf-clock--sm .rb-bf-digits { font-size: 2.1rem; }
.rb-bf-final .rb-bf-actions { animation: none; margin-top: 2rem; }
.rb-bf-fine { margin-top: 1.25rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ── STICKY BAR ──────────────────────────────── */
.rb-bf-sticky {
  position: fixed; left: 50%; bottom: 1rem; z-index: 90;
  display: flex; align-items: center; gap: 1rem; padding: .55rem .6rem .55rem .7rem; border-radius: 16px;
  background: rgba(5, 7, 15, .9); color: #fff; border: 1px solid rgba(255, 200, 61, .3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55); backdrop-filter: blur(12px);
  transform: translate(-50%, 150%); opacity: 0; transition: transform .45s cubic-bezier(.2, 1, .3, 1), opacity .3s;
}
.rb-bf-sticky.is-visible { transform: translate(-50%, 0); opacity: 1; }
.rb-bf-sticky-tag { padding: .35rem .6rem; border-radius: 9px; background: var(--bf-gold); color: var(--bf-on-accent); font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.rb-bf-sticky-text { font-size: .9rem; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.rb-bf-sticky-text b { color: #fff; font-variant-numeric: tabular-nums; }
.rb-bf-sticky .rb-bf-btn::before { display: none; }

/* ── Confetti ────────────────────────────────── */
.rb-bf-confetti { position: fixed; z-index: 9999; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* ── Keyframes ───────────────────────────────── */
@keyframes rb-bf-shine   { to { background-position: -200% 0; } }
@keyframes rb-bf-sweep   { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes rb-bf-ping    { 70% { box-shadow: 0 0 0 9px rgba(255, 61, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 87, 0); } }
@keyframes rb-bf-drift1  { to { transform: translate(14rem, 6rem) scale(1.15); } }
@keyframes rb-bf-drift2  { to { transform: translate(-12rem, 8rem) scale(.9); } }
@keyframes rb-bf-drift3  { to { transform: translate(-10rem, -6rem) scale(1.2); } }
@keyframes rb-bf-floor   { to { background-position: 0 60px; } }
@keyframes rb-bf-twinkle { to { opacity: .3; } }
@keyframes rb-bf-pop     { from { opacity: 0; transform: scale(.6) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rb-bf-rise    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rb-bf-flip    { 0% { transform: rotateX(80deg) translateY(-8px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes rb-bf-blink   { 50% { opacity: .25; } }
@keyframes rb-bf-marquee { to { transform: translateX(-50%); } }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1023px) {
  .rb-bf-bento { grid-template-columns: repeat(2, 1fr); }
  .rb-bf-calc { grid-template-columns: 1fr; padding: 2.25rem; gap: 2rem; }
}
@media (max-width: 640px) {
  .rb-bf-hero-inner { padding: 3.5rem 1rem 5rem; }
  .rb-bf-clock { gap: .35rem; }
  .rb-bf-tile { min-width: 0; flex: 1; padding: .8rem .2rem .65rem; border-radius: 14px; }
  .rb-bf-digits { font-size: 2rem; }
  .rb-bf-colon { display: none; }
  .rb-bf-tile small { font-size: .58rem; letter-spacing: .08em; }
  .rb-bf-actions { flex-direction: column; align-items: stretch; }
  .rb-bf-btn { justify-content: center; }
  .rb-bf-ticket { justify-content: center; }
  .rb-bf-ribbons { height: 110px; margin: -55px 0 -30px; }
  .rb-bf-track span { font-size: .9rem; }
  .rb-bf-bento { grid-template-columns: 1fr; }
  .rb-bf-cell--wide { grid-column: auto; }
  .rb-bf-calc-wrap, .rb-bf-final { padding-left: 1rem; padding-right: 1rem; }
  .rb-bf-calc { padding: 1.5rem; border-radius: 22px; }
  .rb-bf-calc-result { padding: 1.25rem; }
  .rb-bf-seg { display: flex; }
  .rb-bf-seg button { flex: 1; padding: .55rem .4rem; }
  .rb-bf-final-card { padding: 3rem 1.25rem; border-radius: 24px; }
  .rb-bf-sticky { left: .75rem; right: .75rem; bottom: .75rem; gap: .6rem; transform: translateY(150%); }
  .rb-bf-sticky.is-visible { transform: none; }
  .rb-bf-sticky-text { font-size: .8rem; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="rb-bf-"], [class*="rb-bf-"]::before, [class*="rb-bf-"]::after { animation: none !important; transition: none !important; }
  .rb-bf-track { transform: translateX(-12%); }
}

/* ═══════════════════════════════════════════════
   Pricing page + home page variants
   ═══════════════════════════════════════════════ */

/* Compact hero (pricing page) */
.rb-bf-hero--compact .rb-bf-hero-inner { padding: 4rem 1.5rem 5.5rem; }
.rb-bf-mega--sm { display: flex; justify-content: center; margin-top: 1.5rem; font-size: clamp(5rem, 15vw, 9rem); }
.rb-bf-hero--compact .rb-bf-headline { margin-top: 1rem; font-size: clamp(1.8rem, 4.4vw, 3rem); }
.rb-bf-hero--compact .rb-bf-clock { margin-top: 2rem; }

/* Pricing section outside the sale: keep the hover polish, drop the gold glow and ribbon offset */
.rb-bf-pricing--plain { padding-top: 84px; background: none; }

/* Calculator on the pricing page sits between two padded sections */
.rb-bf-pricing + .rb-bf-calc-wrap { padding-top: 0; }

/* Guarantee cards on the pricing page use .rb-bf-cell for the glow */
[data-rb-glow].text-center .rb-bf-cell { padding: 1.75rem; }

/* Home strip */
.rb-bf-strip { padding: 24px 1.5rem 0; }
.rb-bf-strip-card {
  max-width: 76rem; margin: 0 auto; border-radius: 28px; text-align: left;
  box-shadow: 0 40px 80px -30px rgba(5, 7, 15, .55);
}
.rb-bf-strip-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; padding: 3rem 3.25rem; }
.rb-bf-strip-title { margin: 1.1rem 0 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.rb-bf-strip-pct {
  display: block; font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 900; line-height: .95; letter-spacing: -.04em;
  background: var(--bf-gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rb-bf-shine 5s linear infinite;
  filter: drop-shadow(0 8px 30px rgba(255, 170, 30, .3));
}
.rb-bf-strip-sub { margin-top: .9rem; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.rb-bf-strip-sub strong { color: var(--bf-gold); }
.rb-bf-strip-side { display: flex; flex-direction: column; align-items: center; }
.rb-bf-strip-side .rb-bf-clock { margin-top: 0; animation: none; }
.rb-bf-strip-side .rb-bf-actions { margin-top: 1.5rem; animation: none; }

/* Ribbons that sit under a card instead of overlapping two sections */
.rb-bf-ribbons--flat { height: 120px; margin: -30px 0 0; }

@media (max-width: 900px) {
  .rb-bf-strip-grid { grid-template-columns: 1fr; padding: 2.25rem 1.75rem; gap: 1.75rem; text-align: center; }
  .rb-bf-strip-side { width: 100%; }
}
@media (max-width: 640px) {
  .rb-bf-hero--compact .rb-bf-hero-inner { padding: 3rem 1rem 4.5rem; }
  .rb-bf-strip { padding: 16px 1rem 0; }
  .rb-bf-strip-card { border-radius: 22px; }
  .rb-bf-strip-grid { padding: 2rem 1.1rem; }
  .rb-bf-strip-side .rb-bf-actions { width: 100%; }
  .rb-bf-ribbons--flat { height: 90px; margin-top: -24px; }
}

/* ═══════════════════════════════════════════════
   Colour themes (Appearance → Sale & Offers → Colours)
   Variables are set inline by inc/sale-settings.php; extras live here.
   ═══════════════════════════════════════════════ */

/* Festive: falling snow over every promo hero / strip / card */
.rb-sale-theme-festive .rb-bf-stars::before,
.rb-sale-theme-festive .rb-bf-stars::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 120px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 160px 60px, rgba(255, 255, 255, .9), transparent),
    radial-gradient(2px 2px at 60px 190px, #fff, transparent),
    radial-gradient(3px 3px at 200px 160px, rgba(255, 255, 255, .85), transparent);
  background-size: 220px 220px;
  animation: rb-bf-snow 11s linear infinite;
}
.rb-sale-theme-festive .rb-bf-stars::after {
  background-size: 340px 340px; opacity: .55; filter: blur(1px);
  animation: rb-bf-snow-far 19s linear infinite;
}
.rb-sale-theme-festive .rb-bf-stars { opacity: 1; animation: none; }
.rb-sale-theme-festive .rb-bf-ticket { border-color: rgba(255, 107, 107, .7); }
.rb-sale-theme-festive .rb-bf-pill { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .4); }
.rb-sale-theme-festive .rb-bf-hl::after { background: linear-gradient(90deg, #ff8a8a, #e11d48); opacity: .45; }
.rb-sale-theme-festive .rb-bf-kicker { color: #be123c; background: #ffe4e6; }
.rb-sale-theme-festive .rb-bf-kicker--dark { color: var(--bf-gold); background: rgba(255, 107, 107, .12); }
.rb-sale-theme-festive .rb-bf-ico { color: #be123c; background: linear-gradient(135deg, #ffe4e6, #fecdd3); }

/* Cyber */
.rb-sale-theme-cyber .rb-bf-ticket { border-color: rgba(94, 234, 212, .7); }
.rb-sale-theme-cyber .rb-bf-pill { background: rgba(94, 234, 212, .1); border-color: rgba(94, 234, 212, .4); }
.rb-sale-theme-cyber .rb-bf-hl::after { background: linear-gradient(90deg, #5eead4, #60a5fa); opacity: .5; }
.rb-sale-theme-cyber .rb-bf-kicker { color: #1d4ed8; background: #dbeafe; }
.rb-sale-theme-cyber .rb-bf-kicker--dark { color: var(--bf-gold); background: rgba(94, 234, 212, .1); }
.rb-sale-theme-cyber .rb-bf-ico { color: #1d4ed8; background: linear-gradient(135deg, #dbeafe, #c7f9f1); }

@keyframes rb-bf-snow     { to { background-position: 40px 220px; } }
@keyframes rb-bf-snow-far { to { background-position: -40px 340px; } }
