/* Wild Rift Boost — build-c02.css (Category 2: Design, Animation & Motion).
   Companion to build-c02.js. Pure presentation: transform/opacity only,
   no layout shift, no price/copy/flow changes, no new claims.
   All motion is disabled under prefers-reduced-motion AND under
   html.motion-off (footer Motion toggle, build-c02.js #64).
   Classes are prefixed bc02- so they never collide with other agents. */

/* ---------- shared tokens ---------- */
:root{
  --bc02-gold:#d9b36a; --bc02-gold-soft:#e8c98a; --bc02-teal:#2ec8b8;
  --bc02-red:#e06666; --bc02-green:#7bc47f;
}
@keyframes bc02-fade-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes bc02-pop{0%{transform:scale(1)}35%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes bc02-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
@keyframes bc02-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes bc02-pulse-ring{0%{box-shadow:0 0 0 0 rgba(217,179,106,.45)}100%{box-shadow:0 0 0 12px rgba(217,179,106,0)}}
@keyframes bc02-draw{to{stroke-dashoffset:0}}
@keyframes bc02-float-y{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes bc02-ember-rise{0%{transform:translateY(0);opacity:0}15%{opacity:.8}100%{transform:translateY(-46px);opacity:0}}
@keyframes bc02-spin{to{transform:rotate(360deg)}}
@keyframes bc02-eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@keyframes bc02-curl{0%{transform:perspective(900px) rotateY(0)}50%{transform:perspective(900px) rotateY(-14deg) translateX(6px)}100%{transform:perspective(900px) rotateY(0)}}
@keyframes bc02-grow-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes bc02-bubble-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes bc02-ripple-out{from{transform:scale(0);opacity:.5}to{transform:scale(1);opacity:0}}
@keyframes bc02-gold-flash{0%{box-shadow:0 0 0 0 rgba(217,179,106,.55)}100%{box-shadow:0 0 0 14px rgba(217,179,106,0)}}
@keyframes bc02-slide-in-x{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}
@keyframes bc02-tick-draw{to{stroke-dashoffset:0}}
@keyframes bc02-dot-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.6);opacity:.6}}

/* ---------- #12 scroll progress + #60 guides reading progress ---------- */
#bc02-scroll-progress{position:fixed;top:0;left:0;height:3px;width:0%;
  background:linear-gradient(90deg,var(--bc02-gold),var(--bc02-teal));z-index:200;pointer-events:none}
#bc02-scroll-progress.bc02-guide-bar{height:3px}

/* ---------- #2 hero parallax (vars set by JS) ---------- */
.hero-rift{--bc02-px:0;--bc02-py:0}
.hero-rift .hero-emblem{transform:translate(calc(var(--bc02-px)*-10px),calc(var(--bc02-py)*-8px));transition:transform .25s ease-out;will-change:transform}
.hero-rift .hero-library-img{transform:translate(calc(var(--bc02-px)*6px),calc(var(--bc02-py)*4px));transition:transform .25s ease-out;will-change:transform}
.hero-rift h1{transform:translate(calc(var(--bc02-px)*3px),calc(var(--bc02-py)*2px));transition:transform .25s ease-out}
/* #62 portal speed-up on hover/tap */
.hero-rift .hero-scene{transition:filter .3s ease}
.hero-rift.bc02-portal-fast .hero-scene{filter:brightness(1.18) saturate(1.15)}
.hero-rift.bc02-portal-fast .hero-library-img{animation-duration:.6s}
/* #28 book curl */
.hero-library-img.bc02-curl{animation:bc02-curl 1.1s ease-in-out}
.hero-scene{cursor:pointer}
/* #55 headline word reveal */
.bc02-word{display:inline-block;opacity:0;transform:translateY(10px);animation:bc02-fade-up .5s ease forwards}
.bc02-word.bc02-word-gold{color:var(--bc02-gold-soft)}
.hero-rift h1.bc02-headline-done .bc02-word{opacity:1;transform:none}

/* ---------- #1 animated rank-climb path ---------- */
#bc02-climb{margin:14px 0 6px;position:relative}
#bc02-climb-track{position:relative;height:8px;border-radius:99px;
  background:rgba(217,179,106,.18);overflow:visible}
#bc02-climb-fill{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:99px;
  background:linear-gradient(90deg,var(--bc02-teal),var(--bc02-gold));
  transition:width .5s ease}
#bc02-climb-dot{position:absolute;top:50%;left:0%;width:34px;height:34px;margin:-17px 0 0 -17px;
  border-radius:50%;overflow:hidden;border:2px solid var(--bc02-gold);
  box-shadow:0 0 14px rgba(217,179,106,.5);transition:left .5s ease;background:#0b0f16}
#bc02-climb-dot img{width:100%;height:100%;object-fit:cover;display:block}
#bc02-climb-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--bc02-gold-soft);margin-top:8px}

/* ---------- #15 before/after slider (inside preview panel) ---------- */
#bc02-morph{display:flex;align-items:center;gap:10px;margin-top:10px}
#bc02-morph img{width:44px;height:44px;object-fit:cover;border-radius:50%;border:2px solid rgba(217,179,106,.5);transition:opacity .2s ease,transform .2s ease}
#bc02-morph input[type=range]{flex:1;accent-color:var(--bc02-gold)}

/* ---------- #5 live preview panel ---------- */
#bc02-preview{margin-top:14px;border:1px solid rgba(217,179,106,.35);border-radius:12px;padding:14px;
  background:rgba(10,13,19,.6)}
#bc02-preview .bc02-preview-row{display:flex;align-items:center;gap:12px}
#bc02-preview img{width:52px;height:52px;object-fit:cover;border-radius:50%;border:2px solid var(--bc02-gold)}
#bc02-preview .bc02-preview-price{font-size:22px;font-weight:700;color:var(--bc02-gold-soft);font-variant-numeric:tabular-nums}
#bc02-preview .bc02-preview-eta{font-size:13px;opacity:.85}
#bc02-eta-bar{height:8px;border-radius:99px;background:rgba(217,179,106,.18);margin-top:10px;overflow:hidden}
#bc02-eta-fill{height:100%;width:20%;border-radius:99px;background:linear-gradient(90deg,var(--bc02-teal),var(--bc02-gold));transition:width .5s ease}
/* #7 ETA timeline */
#bc02-eta-timeline{margin-top:14px}
#bc02-eta-timeline .bc02-tl-line{position:relative;height:4px;border-radius:99px;background:rgba(217,179,106,.2)}
#bc02-eta-timeline .bc02-tl-fill{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:99px;background:var(--bc02-gold);transition:width .8s ease}
#bc02-eta-timeline .bc02-tl-nodes{display:flex;justify-content:space-between;font-size:12px;margin-top:8px}
#bc02-eta-timeline .bc02-tl-nodes span{opacity:.85}
#bc02-eta-timeline .bc02-tl-nodes b{color:var(--bc02-gold-soft)}

/* ---------- #6 loyalty meter + #25 discount pop ---------- */
.bc02-loyalty-meter{margin-top:10px}
.bc02-loyalty-meter .bc02-meter-track{height:10px;border-radius:99px;background:rgba(217,179,106,.18);overflow:hidden}
.bc02-loyalty-meter .bc02-meter-fill{height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,var(--bc02-teal),var(--bc02-gold));transition:width .6s ease}
.bc02-loyalty-meter .bc02-meter-label{font-size:13px;margin-top:6px;color:var(--bc02-gold-soft)}
.bc02-loyalty-meter.bc02-pop .bc02-meter-fill{animation:bc02-pop .45s ease}
.calc-total.bc02-pop{animation:bc02-pop .45s ease, bc02-gold-flash .8s ease}

/* ---------- #8 price-table row highlight + #52 animated price bars ---------- */
#priceTable tr.bc02-row-active,.price-table tr.bc02-row-active{
  outline:2px solid var(--bc02-gold);outline-offset:-2px;
  background:rgba(217,179,106,.09)!important;
  box-shadow:inset 0 0 18px rgba(217,179,106,.12)}
#bc02-price-bars{margin-top:12px;display:grid;gap:6px}
.bc02-price-bar-row{display:grid;grid-template-columns:minmax(90px,1fr) 8px;align-items:center;gap:8px;font-size:13px}
.bc02-price-bar-row .bc02-bar-track{height:8px;border-radius:99px;background:rgba(217,179,106,.15);overflow:hidden}
.bc02-price-bar-row .bc02-bar-fill{height:100%;width:0;background:var(--bc02-teal);transition:width .6s ease}
.bc02-price-bar-row.bc02-bar-active .bc02-bar-fill{background:var(--bc02-gold)}
.bc02-price-bar-row.bc02-bar-active{font-weight:700;color:var(--bc02-gold-soft)}

/* ---------- #3 order progress tracker + #70 step ticks ---------- */
#bc02-tracker{display:flex;gap:8px;margin:0 0 16px;list-style:none;padding:0}
#bc02-tracker li{flex:1;text-align:center;font-size:13px;position:relative;padding-top:34px;color:inherit;opacity:.75}
#bc02-tracker li::before{content:"";position:absolute;top:8px;left:50%;margin-left:-13px;width:26px;height:26px;border-radius:50%;
  border:2px solid rgba(217,179,106,.5);background:#0b0f16;transition:background .3s ease,border-color .3s ease}
#bc02-tracker li::after{content:"";position:absolute;top:20px;left:calc(-50% + 16px);right:calc(50% + 16px);height:2px;background:rgba(217,179,106,.25)}
#bc02-tracker li:first-child::after{display:none}
#bc02-tracker li.bc02-step-done{opacity:1;color:var(--bc02-gold-soft)}
#bc02-tracker li.bc02-step-done::before{background:var(--bc02-gold);border-color:var(--bc02-gold)}
#bc02-tracker li.bc02-step-done::after{background:var(--bc02-gold)}
#bc02-tracker li.bc02-step-now{opacity:1;font-weight:700}
#bc02-tracker li.bc02-step-now::before{animation:bc02-pulse-ring 1.6s ease-out infinite}
#bc02-tracker .bc02-step-tick{position:absolute;top:8px;left:50%;margin-left:-13px;width:26px;height:26px;display:grid;place-items:center;color:#0d1b2e;font-weight:700;z-index:1;opacity:0}
#bc02-tracker li.bc02-step-done .bc02-step-tick{opacity:1}
#bc02-tracker .bc02-step-tick svg{width:16px;height:16px}
#bc02-tracker .bc02-step-tick svg path{stroke:#0d1b2e;stroke-width:3;fill:none;stroke-dasharray:24;stroke-dashoffset:24}
#bc02-tracker li.bc02-step-done .bc02-step-tick svg path{animation:bc02-tick-draw .4s ease forwards}

/* ---------- #10 sticky order summary ---------- */
#bc02-order-summary{position:sticky;top:0;z-index:20;display:flex;gap:12px;flex-wrap:wrap;align-items:center;
  background:rgba(10,13,19,.97);border:1px solid rgba(217,179,106,.4);border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:14px}
#bc02-order-summary b{color:var(--bc02-gold-soft)}
#bc02-order-summary.bc02-bump{animation:bc02-pop .35s ease}
#bc02-order-summary img{width:28px;height:28px;border-radius:50%;object-fit:cover}

/* ---------- #11 How-it-works draw-in icons ---------- */
.bc02-step-icon{display:inline-block;width:44px;height:44px;margin-bottom:6px;color:var(--bc02-gold)}
.bc02-step-icon svg{width:100%;height:100%}
.bc02-step-icon svg *{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:120;stroke-dashoffset:120}
.steps li.bc02-drawn .bc02-step-icon svg *{animation:bc02-draw .9s ease forwards}

/* ---------- #16 success tick + particles ---------- */
#bc02-success{position:fixed;inset:0;display:grid;place-items:center;z-index:300;pointer-events:none;opacity:0;transition:opacity .3s ease}
#bc02-success.bc02-show{opacity:1}
#bc02-success .bc02-tick-ring{width:96px;height:96px;border-radius:50%;border:3px solid var(--bc02-gold);
  display:grid;place-items:center;background:rgba(10,13,19,.95);box-shadow:0 0 40px rgba(217,179,106,.4)}
#bc02-success svg{width:52px;height:52px}
#bc02-success svg path{stroke:var(--bc02-gold);stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:60;stroke-dashoffset:60}
#bc02-success.bc02-show svg path{animation:bc02-tick-draw .5s ease .1s forwards}
.bc02-particle{position:fixed;width:8px;height:8px;border-radius:50%;background:var(--bc02-gold);z-index:301;pointer-events:none;
  transition:transform .8s ease-out,opacity .8s ease-out}

/* ---------- #17 rank error shake ---------- */
.bc02-shake{animation:bc02-shake .45s ease}
#rankPicker.bc02-invalid,#rankFields.bc02-invalid{outline:2px solid rgba(224,102,102,.7);outline-offset:4px;border-radius:10px}

/* ---------- #18 / #42 owner pulses + stagger ---------- */
.bc02-needs-pay{animation:bc02-pulse-ring 1.8s ease-out infinite;border-color:rgba(217,179,106,.7)!important}
#ownerOrders .order.bc02-stagger-in,#ownerOrders .card.bc02-stagger-in{animation:bc02-fade-up .45s ease both}
#ownerSummary.bc02-flash{animation:bc02-gold-flash .8s ease}

/* ---------- #19 skeleton shimmer ---------- */
.bc02-skeleton{border:1px solid rgba(217,179,106,.2);border-radius:10px;padding:16px;margin:10px 0;
  background:linear-gradient(100deg,rgba(217,179,106,.06) 30%,rgba(217,179,106,.16) 50%,rgba(217,179,106,.06) 70%);
  background-size:200% 100%;animation:bc02-shimmer 1.6s linear infinite;min-height:74px}

/* ---------- #20 guide filter reshuffle ---------- */
.guide-card{transition:opacity .3s ease,transform .3s ease}
.guide-card.bc02-reshuffle{animation:bc02-fade-up .35s ease both}
.guide-card.bc02-dim{opacity:.35}

/* ---------- #21 FAQ accordion ---------- */
details summary{cursor:pointer;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"▾";float:right;color:var(--bc02-gold);transition:transform .3s ease}
details[open ] summary::after{transform:rotate(180deg)}
details > p{animation:bc02-fade-up .3s ease}
details.bc02-faq-glow{border-color:var(--bc02-gold)!important;box-shadow:0 0 16px rgba(217,179,106,.18)}

/* ---------- #22 currency flip ---------- */
.bc02-flip{animation:bc02-pop .3s ease}
.wrb-currency-note.bc02-flip-note{animation:bc02-fade-up .4s ease}

/* ---------- #23 referral copy ---------- */
.bc02-copy-btn{margin-left:8px;cursor:pointer}
.bc02-copied-msg{display:inline-block;color:var(--bc02-green);font-weight:700;animation:bc02-slide-in-x .3s ease}

/* ---------- #24 progress ring (account) ---------- */
.bc02-ring{display:inline-flex;align-items:center;gap:10px;margin:8px 0}
.bc02-ring svg{width:56px;height:56px;transform:rotate(-90deg)}
.bc02-ring .bc02-ring-bg{stroke:rgba(217,179,106,.2);fill:none;stroke-width:6}
.bc02-ring .bc02-ring-fg{stroke:var(--bc02-gold);fill:none;stroke-width:6;stroke-linecap:round;transition:stroke-dashoffset .8s ease}
.bc02-ring .bc02-ring-label{font-size:13px}

/* ---------- #26 emblem tilt + flip (Marks on back) ---------- */
.ladder-step{perspective:600px}
.ladder-step .emblem{transition:transform .25s ease,filter .25s ease;transform-style:preserve-3d}
.ladder-step:hover .emblem{transform:rotateY(12deg) rotateX(-6deg) scale(1.06)}
.ladder-step.bc02-flipped .emblem{transform:rotateY(180deg)}
.bc02-marks-back{font-size:12px;color:var(--bc02-gold-soft);display:block;min-height:16px}
.ladder-step .emblem[data-bc02-marks]{cursor:pointer}

/* ---------- #27 toast upgrade ---------- */
.toast.bc02-toast-gold{border-color:var(--bc02-gold);box-shadow:0 12px 32px rgba(0,0,0,.45),0 0 24px rgba(217,179,106,.25)}
.toast.bc02-toast-gold a{color:var(--bc02-gold-soft);font-weight:700;margin-left:8px}

/* ---------- #30 cursor embers ---------- */
#bc02-embers{position:fixed;inset:0;pointer-events:none;z-index:1;overflow:hidden}
#bc02-embers span{position:absolute;width:6px;height:6px;border-radius:50%;
  background:radial-gradient(circle,rgba(232,201,138,.9),rgba(217,179,106,0) 70%);opacity:.55;
  transition:transform .6s ease-out;will-change:transform}

/* ---------- #31 magnetic buttons ---------- */
.btn,.btn-buy{will-change:transform}
.btn.bc02-magnetic,.btn-buy.bc02-magnetic{transition:transform .15s ease-out,box-shadow .2s ease}
.btn .bc02-arrow,.btn-buy .bc02-arrow{display:inline-block;transition:transform .2s ease}
.btn:hover .bc02-arrow,.btn-buy:hover .bc02-arrow{transform:translateX(4px)}

/* ---------- #32 reviews carousel ---------- */
#reviewsList.bc02-carousel{position:relative}
#reviewsList.bc02-carousel > *{animation:bc02-fade-up .5s ease}
#reviewsList.bc02-carousel .bc02-review-hidden{display:none}
#reviewsList.bc02-carousel .bc02-review-active{display:block}

/* ---------- #33 helper rise + typing dots ---------- */
.helper-panel.bc02-helper-rise,.bc02-helper-rise{animation:bc02-fade-up .35s ease}
.bc02-typing{display:inline-flex;gap:4px;padding:6px 0}
.bc02-typing i{width:6px;height:6px;border-radius:50%;background:var(--bc02-gold);animation:bc02-dot-pulse 1s ease infinite}
.bc02-typing i:nth-child(2){animation-delay:.15s}
.bc02-typing i:nth-child(3){animation-delay:.3s}

/* ---------- #34 auth crossfade ---------- */
#authCard.bc02-auth-swap{animation:bc02-fade-up .3s ease}
#authCard .bc02-auth-panel{transition:opacity .25s ease}

/* ---------- #35 empty state ---------- */
.bc02-empty{text-align:center;padding:18px 6px}
.bc02-empty img{width:min(220px,70vw);height:auto;animation:bc02-float-y 3.5s ease-in-out infinite}
.bc02-empty .bc02-empty-arrow{font-size:26px;color:var(--bc02-gold);animation:bc02-float-y 1.6s ease-in-out infinite;display:block;margin-top:6px}

/* ---------- #36 page transitions ---------- */
main.bc02-page-enter{animation:bc02-fade-up .35s ease both}

/* ---------- #37 gold divider grow ---------- */
section h2,.card h2{position:relative}
section h2::after,.card h2::after{content:"";display:block;height:2px;width:64px;margin-top:8px;
  background:linear-gradient(90deg,var(--bc02-gold),transparent);transform:scaleX(0);transform-origin:left;transition:transform .6s ease}
section.bc02-inview h2::after,.card.bc02-inview h2::after{transform:scaleX(1)}

/* ---------- #38 service flip cards ---------- */
.svc-card{perspective:900px}
.svc-card .bc02-flip-back{display:none;border-top:1px solid rgba(217,179,106,.25);padding:10px 14px;font-size:13px}
.svc-card.bc02-flipped .bc02-flip-back{display:block;animation:bc02-fade-up .3s ease}
.svc-card.bc02-flipped .svc-body{opacity:.55}
.svc-card .bc02-flip-hint{font-size:12px;color:var(--bc02-gold-soft);cursor:pointer}

/* ---------- #39 Marks pips ---------- */
.bc02-pips{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}
.bc02-pips i{width:10px;height:10px;border-radius:50%;border:1px solid var(--bc02-gold);display:inline-block;transition:background .25s ease,transform .25s ease}
.bc02-pips i.bc02-pip-on{background:var(--bc02-gold);transform:scale(1.15)}
.bc02-pips i.bc02-pip-held{background:var(--bc02-teal);border-color:var(--bc02-teal)}

/* ---------- #40 Express clock ---------- */
.bc02-clock{display:inline-block;vertical-align:middle;margin-left:6px;color:var(--bc02-gold)}
.bc02-clock svg{width:18px;height:18px;vertical-align:middle}
.bc02-clock.bc02-clock-fast svg{animation:bc02-spin .9s linear infinite}
.bc02-clock svg{animation:bc02-spin 6s linear infinite}

/* ---------- #41 back-to-calculator ----------
   Stacked ABOVE the "Back to top" button (build-c12.js, .c12-totop
   at bottom:76px desktop / 128px mobile). Desktop: 140px clears it.
   Mobile: 140px overlapped it, so the ≤700px rule below moves this
   one to 180px (see the media query after .bc02-pulse-once). */
#bc02-back-calc{position:fixed;right:16px;bottom:140px;z-index:90;opacity:0;pointer-events:none;
  transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}
#bc02-back-calc.bc02-show{opacity:1;pointer-events:auto;transform:translateY(0)}
#bc02-back-calc.bc02-pulse-once{animation:bc02-pulse-ring 1.2s ease-out 1}
@media (max-width:700px){
  /* Mobile: "Back to top" sits at bottom:128px, so this one must sit a
     full button above it (128 + ~40px button + 12px gap = 180px). The
     old 140px overlapped it on phones, and the helper ? sat on both. */
  #bc02-back-calc{bottom:180px}
}

/* ---------- #43 emblem slide-in ---------- */
#rankFromEmblem.bc02-slide-in,#rankToEmblem.bc02-slide-in,#fromEmblem.bc02-slide-in,#toEmblem.bc02-slide-in{animation:bc02-slide-in-x .35s ease}

/* ---------- #44 spotlight tour ---------- */
#bc02-tour{position:fixed;inset:0;z-index:400;pointer-events:none}
#bc02-tour .bc02-tour-spot{position:absolute;border:2px solid var(--bc02-gold);border-radius:12px;
  box-shadow:0 0 0 4000px rgba(0,0,0,.65),0 0 24px rgba(217,179,106,.5);transition:all .4s ease}
#bc02-tour .bc02-tour-tip{position:absolute;max-width:280px;background:rgba(10,13,19,.98);border:1px solid var(--bc02-gold);
  border-radius:10px;padding:12px 14px;font-size:14px;pointer-events:auto}
#bc02-tour .bc02-tour-tip button{margin-top:8px}

/* ---------- #45 sound equaliser ---------- */
#soundToggle .bc02-eq{display:none;gap:2px;align-items:flex-end;height:14px;margin-left:6px}
#soundToggle.sound-on .bc02-eq{display:inline-flex}
#soundToggle .bc02-eq i{width:3px;height:12px;background:var(--bc02-gold);transform-origin:bottom;animation:bc02-eq .8s ease-in-out infinite}
#soundToggle .bc02-eq i:nth-child(2){animation-delay:.2s}
#soundToggle .bc02-eq i:nth-child(3){animation-delay:.4s}

/* ---------- #46 PayPal interstitial ---------- */
#bc02-pay-overlay{position:fixed;inset:0;z-index:350;display:grid;place-items:center;background:rgba(5,10,20,.82);opacity:0;pointer-events:none;transition:opacity .25s ease}
#bc02-pay-overlay.bc02-show{opacity:1;pointer-events:auto}
#bc02-pay-overlay .bc02-pay-card{background:#0b0f16;border:1px solid var(--bc02-gold);border-radius:14px;padding:24px;text-align:center;max-width:340px;margin:16px}
#bc02-pay-overlay .bc02-spinner{width:36px;height:36px;margin:0 auto 12px;border-radius:50%;border:3px solid rgba(217,179,106,.25);border-top-color:var(--bc02-gold);animation:bc02-spin .8s linear infinite}

/* ---------- #47 star rating ---------- */
.bc02-stars{display:inline-flex;gap:4px;vertical-align:middle}
.bc02-stars button{background:none;border:0;cursor:pointer;padding:2px;font-size:26px;line-height:1;color:rgba(217,179,106,.35);transition:transform .15s ease,color .15s ease}
.bc02-stars button.bc02-star-on{color:var(--bc02-gold)}
.bc02-stars button:hover{transform:scale(1.2)}

/* ---------- #49 blur-up lazy ---------- */
img.bc02-blur{filter:blur(6px);transition:filter .5s ease}
img.bc02-blur.bc02-sharp{filter:blur(0)}

/* ---------- #50 chat bubbles ---------- */
.bc02-bubble{animation:bc02-bubble-in .35s ease both}
.bc02-bubble.bc02-bubble-them{border-left:3px solid var(--bc02-teal)}
.bc02-bubble.bc02-bubble-me{border-right:3px solid var(--bc02-gold)}

/* ---------- #51 tabs underline + crossfade ---------- */
.tabs{position:relative}
.tabs.bc02-tabs{--bc02-tab-x:0;--bc02-tab-w:0}
.tabs.bc02-tabs::after{content:"";position:absolute;left:var(--bc02-tab-x);bottom:-2px;width:var(--bc02-tab-w);height:3px;
  background:var(--bc02-gold);border-radius:99px;transition:left .3s ease,width .3s ease}
.bc02-tab-fade{animation:bc02-fade-up .25s ease}

/* ---------- #53 footer ember wave ---------- */
footer{position:relative;overflow:hidden}
footer::before{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;pointer-events:none;
  background:radial-gradient(ellipse 60px 14px at 20% 100%,rgba(217,179,106,.15),transparent 70%),
    radial-gradient(ellipse 60px 14px at 55% 100%,rgba(46,200,184,.12),transparent 70%),
    radial-gradient(ellipse 60px 14px at 85% 100%,rgba(217,179,106,.13),transparent 70%);
  background-size:200% 100%;animation:bc02-shimmer 9s linear infinite}
.bc02-footer-ember{position:absolute;bottom:0;width:5px;height:5px;border-radius:50%;background:var(--bc02-gold);opacity:0;animation:bc02-ember-rise 5s ease-in infinite;pointer-events:none}

/* ---------- #54 ladder glow (JS scrolls to calculator) ---------- */
.ladder-step.bc02-ladder-glow{outline:2px solid var(--bc02-gold);outline-offset:2px;border-radius:10px}
#calculator.bc02-calc-glow{box-shadow:0 0 0 2px rgba(34,211,238,.65),0 0 30px rgba(34,211,238,.25)}

/* ---------- #56 refund shield + steps ---------- */
#refund h2 .bc02-shield{display:inline-block;width:30px;height:30px;vertical-align:-6px;margin-right:8px;color:var(--bc02-gold)}
#refund h2 .bc02-shield svg{width:100%;height:100%}
#refund h2 .bc02-shield svg *{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:120;stroke-dashoffset:120}
#refund.bc02-inview h2 .bc02-shield svg *{animation:bc02-draw .9s ease forwards}
#refund .steps li,#refund + section .steps li{position:relative}
#refund .steps li.bc02-step-done b{color:var(--bc02-gold-soft)}

/* ---------- #57 owner nav pulse dot ---------- */
nav a.bc02-new-dot{position:relative}
nav a.bc02-new-dot::after{content:"";position:absolute;top:2px;right:-6px;width:9px;height:9px;border-radius:50%;
  background:var(--bc02-gold);animation:bc02-dot-pulse 1.4s ease infinite}

/* ---------- #59 ripple ---------- */
.btn,.btn-buy{position:relative;overflow:hidden}
.bc02-ripple{position:absolute;border-radius:50%;background:rgba(255,255,255,.35);pointer-events:none;
  transform:translate(-50%,-50%);animation:bc02-ripple-out .55s ease-out forwards}

/* ---------- #60 guides reading highlight ---------- */
.guide-card.bc02-reading{border-color:rgba(217,179,106,.6)!important;box-shadow:0 0 18px rgba(217,179,106,.15)}

/* ---------- #61 validation ticks ---------- */
.bc02-valid-tick{color:var(--bc02-green);font-weight:700;margin-left:6px;animation:bc02-fade-up .25s ease}
input.bc02-valid,select.bc02-valid{border-color:rgba(123,196,127,.8)!important}
input.bc02-invalid-field,select.bc02-invalid-field{border-color:rgba(224,102,102,.8)!important}

/* ---------- #64 motion toggle ---------- */
#bc02-motion-toggle{cursor:pointer}

/* ---------- #65 order emblem morph ---------- */
#orderCard .svc-visual.bc02-morphing img{animation:bc02-pop .5s ease}
#orderCard .svc-visual.bc02-morphing #toEmblem{animation:bc02-pop .5s ease .1s}

/* ---------- #66 3D tilt ---------- */
.guide-card.bc02-tilt,.svc-card.bc02-tilt{transform-style:preserve-3d;will-change:transform}

/* ---------- #68 FAQ search ---------- */
#bc02-faq-search{width:100%;margin:0 0 14px}
.bc02-faq-match{border-color:var(--bc02-gold)!important}
.bc02-faq-dim{opacity:.35}

/* ---------- #69 background parallax vars ---------- */
body{--bc02-bg-y1:0px;--bc02-bg-y2:0px}
/* .rift-art used to ride the scroll parallax (translateY on --bc02-bg-y1),
   but the showcase card has overflow:hidden, so the shift clipped the
   top/bottom of Bob's real map as you scrolled. The map now stays put
   and fully visible. */
.hero-rift .hero-scene{transform:translateY(var(--bc02-bg-y2))}

/* ---------- #4 pay-gate unlock shimmer ---------- */
#payGateBanner.bc02-unlocked,#customerCard.bc02-unlocked{position:relative;overflow:hidden}
#payGateBanner.bc02-unlocked::after,#customerCard.bc02-unlocked::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(232,201,138,.22) 50%,transparent 70%);
  background-size:200% 100%;animation:bc02-shimmer 1.4s linear 2}
#myOrders.bc02-unlocked{animation:bc02-fade-up .5s ease}

/* ---------- reduced motion + motion-off: kill ALL build-c02 motion ---------- */
@media (prefers-reduced-motion: reduce){
  #bc02-scroll-progress,#bc02-embers,.bc02-particle,.bc02-footer-ember{display:none!important}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .bc02-word{opacity:1!important;transform:none!important}
  #bc02-climb-dot,#bc02-climb-fill,.bc02-meter-fill,#bc02-eta-fill,.bc02-bar-fill{transition:none!important}
}
html.motion-off #bc02-scroll-progress,html.motion-off #bc02-embers,
html.motion-off .bc02-particle,html.motion-off .bc02-footer-ember{display:none!important}
html.motion-off *,html.motion-off *::before,html.motion-off *::after{animation:none!important;transition:none!important}
html.motion-off .bc02-word{opacity:1!important;transform:none!important}
@media (max-width:700px){
  #bc02-tracker li{font-size:11px}
  #bc02-back-calc{bottom:192px} /* above .c12-totop at 128px on mobile */
  .bc02-step-icon{width:36px;height:36px}
}
