/* =======================================================================
   BILLING — Best Value Bundles band + conversion decision modal
   prefix bp- (bundle cards, any page) / upx- (decision modal)

   Ported from the Claude Design handoff (hive-spoofer/styles/billing-plans.css)
   onto the production token set (styles/tokens.css — identical values).
   Every amount shown inside these components comes from server cents; this
   file contains presentation only.

   Loaded by index.html + pricing.html, and self-injected by conversion.js
   (injectStylesOnce) so the modal is styled on any page that loads it.

   Contrast: --fg-3/--fg-4 fail WCAG AA at the small sizes used here, so
   muted-but-readable text uses --bp-muted (≈6.8:1 on --bg-2) and the
   load-bearing disclosure/warning lines use --fg-2.
   ======================================================================= */
:root { --bp-muted: #9b9ba6; }

/* ---------- subscriptions layout (billing page) ----------
   Bundles band leads the page; Creator plans span one full-width 3-up row;
   the single Spoofer plan is one wide card below. */
.billing-bundles-section .bp-bundles-head { margin-top: 4px; }
.billing-sub-section { margin-top: var(--s-7); }
/* band gated off (existing subscribers): the tab opens flush, no dead gap */
.billing-tab-body > .billing-sub-section:first-child { margin-top: 4px; }
/* latent multi-tier safety: stacked wide cards never touch */
.billing-sub-section > .billing-plan-card + .billing-plan-card { margin-top: var(--s-4); }
.billing-plan-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
/* config-empty fallback spans the full row (explicit tracks never collapse) */
.billing-plan-grid.three-up > .billing-config-empty { grid-column: 1 / -1; }
@media (max-width: 1100px) { .billing-plan-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .billing-plan-grid.three-up { grid-template-columns: 1fr; } }

/* wide single Spoofer card: identity | included tools | hint + action */
.billing-plan-card.spoofer-wide {
  display: grid;
  grid-template-columns: minmax(170px, max-content) 1fr minmax(250px, 340px);
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5);
}
.spoofer-wide .spw-id, .spoofer-wide .spw-mid, .spoofer-wide .spw-act {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.spoofer-wide .spw-mid { align-items: flex-start; }
@media (max-width: 980px) {
  .billing-plan-card.spoofer-wide { grid-template-columns: 1fr; align-items: stretch; }
}

/* pairing hint — dashed amber callout (from the design handoff) */
.bp-pair-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: var(--r-md);
  background: var(--amber-soft); border: 1px dashed rgba(255,179,0,0.35);
  font-size: 11.5px; color: var(--amber); line-height: 1.4;
}
.bp-pair-hint svg { flex: none; }

/* ---------- marketing plan cards (public pricing page) ----------
   bp-plan / bp-plan-grid / bp-spoof-wide — ported from the design handoff
   (hive-spoofer/styles/billing-plans.css). Rendered by pricing.js from the
   live server catalogs; no amounts live in markup or CSS. */
.bp-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 1000px) { .bp-plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .bp-plan-grid { grid-template-columns: 1fr; } }

.bp-plan {
  position: relative;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  font-family: inherit;
  color: var(--fg-1);
  display: flex; flex-direction: column; gap: 0;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}
.bp-plan:hover {
  transform: translateY(-3px);
  border-color: var(--line-3);
  background: var(--bg-3);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
}
.bp-plan.popular { border-color: rgba(255,179,0,0.55); }
.bp-plan.popular:hover { border-color: var(--amber); box-shadow: 0 18px 44px -20px rgba(255,179,0,0.25); }
.bp-plan.spoof { border-color: rgba(239,72,72,0.4); }
.bp-plan.spoof:hover { border-color: var(--spoof); box-shadow: 0 18px 44px -20px rgba(239,72,72,0.3); }
.bp-plan.is-static { cursor: default; }
.bp-plan.is-static:hover { transform: none; }
.bp-plan:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.bp-plan-badge {
  position: absolute; top: -10px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px;
  background: var(--amber); color: #0a0a0a;
}
.bp-plan.spoof .bp-plan-badge { background: var(--spoof); color: #fff; }

.bp-plan-name { font-size: 14px; font-weight: 600; color: var(--fg-0); letter-spacing: -0.005em; }
.bp-for { font-size: 12px; color: var(--fg-3); margin-top: 3px; }
.bp-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.bp-plan-price .num { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; color: var(--fg-0); line-height: 1; }
.bp-plan-price .per { font-size: 13px; color: var(--bp-muted); }
.bp-plan-price .was { font-size: 14px; color: var(--bp-muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.bp-plan-credits {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--amber);
  margin-top: 6px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-1);
}
.bp-plan.spoof .bp-plan-credits { color: var(--spoof-bright); }

.bp-feats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; flex: 1; }
.bp-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--fg-2); line-height: 1.45; }
.bp-feats li svg { flex: none; margin-top: 2px; color: var(--green); }
.bp-feats li.no { color: var(--fg-4); }
.bp-feats li.no svg { color: var(--fg-4); }
.bp-feats li .up { display: block; font-size: 11px; color: var(--amber); font-family: var(--font-mono); }

.bp-plan-cta {
  min-height: 38px; border-radius: var(--r-md); border: 1px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--amber); color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 0 14px;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.bp-plan:hover .bp-plan-cta { background: var(--amber-bright); box-shadow: 0 8px 20px -8px rgba(255,179,0,0.5); }
.bp-plan.spoof .bp-plan-cta { background: var(--spoof); color: #fff; }
.bp-plan.spoof:hover .bp-plan-cta { background: var(--spoof-bright); box-shadow: 0 8px 20px -8px rgba(239,72,72,0.55); }
.bp-plan-cta.is-ghost { background: transparent; border-color: var(--line-2); color: var(--fg-1); }
.bp-plan:hover .bp-plan-cta.is-ghost { background: var(--bg-3); box-shadow: none; }
.bp-plan-cta[disabled], .bp-plan-cta.is-disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.bp-plan-note {
  font-size: 12.5px; line-height: 1.5; color: var(--fg-2);
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px;
}
.bp-plan-note strong { color: var(--fg-0); }

.bp-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.bp-tool {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--fg-2);
}

/* wide horizontal Spoofer card */
.bp-spoof-wide {
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  gap: var(--s-6);
  align-items: center;
  padding: 22px 26px;
}
.bp-sw-left { display: flex; flex-direction: column; }
.bp-sw-mid { display: flex; flex-direction: column; gap: 12px; padding-left: var(--s-5); border-left: 1px solid var(--line-1); align-self: stretch; justify-content: center; }
.bp-sw-right { display: flex; flex-direction: column; gap: 12px; }
.bp-sw-right .bp-plan-cta { width: 100%; }
@media (max-width: 940px) {
  .bp-spoof-wide { grid-template-columns: 1fr; gap: var(--s-4); }
  .bp-sw-mid { padding-left: 0; border-left: 0; }
}

/* ---------- bundles band ---------- */
.bp-bundles-head {
  margin-top: var(--s-7);
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.bp-bundles-head h2, .bp-bundles-head h3 {
  margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--fg-0);
  display: flex; align-items: center; gap: 10px;
}
.bp-bundles-head .sub { font-size: 13px; color: var(--fg-2); }
.bp-bundles-head .sub strong { color: var(--amber); font-weight: 600; }

.bp-bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-4); }
@media (max-width: 1000px) { .bp-bundle-grid { grid-template-columns: 1fr; } }

/* rotating gradient frame */
@property --bp-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bp-bundle {
  position: relative;
  border-radius: calc(var(--r-xl) + 1px);
  padding: 1.5px;
  background:
    conic-gradient(from var(--bp-a) at 50% 50%,
      rgba(255,179,0,0.05), rgba(255,179,0,0.85) 12%, rgba(255,140,0,0.25) 26%,
      rgba(255,179,0,0.05) 42%, rgba(255,179,0,0.6) 60%, rgba(255,179,0,0.05) 78%, rgba(255,179,0,0.05));
  animation: bpSpin 7s linear infinite;
  transition: transform 280ms var(--ease);
}
.bp-bundle:hover { transform: translateY(-3px); }
.bp-bundle.rec {
  background:
    conic-gradient(from var(--bp-a) at 50% 50%,
      rgba(239,72,72,0.06), rgba(255,179,0,0.8) 14%, rgba(239,72,72,0.5) 30%,
      rgba(239,72,72,0.06) 46%, rgba(255,140,60,0.55) 64%, rgba(239,72,72,0.06) 80%, rgba(239,72,72,0.06));
}
@keyframes bpSpin { to { --bp-a: 360deg; } }

.bp-bundle-glow {
  position: absolute; inset: -22px; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 8%, var(--amber-glow), transparent 70%);
  opacity: 0.5; filter: blur(8px);
  animation: bpBreath 4s ease-in-out infinite;
}
@keyframes bpBreath { 0%,100% { opacity: 0.3; } 50% { opacity: 0.7; } }

.bp-bundle-body {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #15120a 0%, var(--bg-2) 32%);
  border-radius: var(--r-xl);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.bp-bundle.rec .bp-bundle-body { background: linear-gradient(180deg, #160e0d 0%, var(--bg-2) 32%); }

.bp-float-badge {
  position: absolute; top: -12px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px;
  background: linear-gradient(120deg, var(--amber), #ffd34d);
  color: #0a0a0a;
  box-shadow: 0 6px 18px -4px rgba(255,179,0,0.55);
}
.bp-bundle.rec .bp-float-badge { background: linear-gradient(120deg, var(--spoof), #ff8a5c); color: #fff; box-shadow: 0 6px 18px -4px rgba(239,72,72,0.55); }

.bp-bundle-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 4px; }
.bp-bundle-name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; color: var(--fg-0); }
.bp-bundle-sub { font-size: 12.5px; color: var(--fg-2); margin-top: 3px; }
.bp-social {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--amber); padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255,179,0,0.3); background: var(--amber-soft);
}
.bp-bundle.rec .bp-social { color: var(--spoof-bright); border-color: rgba(239,72,72,0.3); background: var(--spoof-soft); }

/* price row with animated strike */
.bp-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.bp-was {
  position: relative; font-size: 20px; font-weight: 500; color: var(--fg-3);
  letter-spacing: -0.02em; line-height: 1;
}
.bp-was svg { position: absolute; inset: -6px -5px; width: calc(100% + 10px); height: calc(100% + 12px); overflow: visible; }
.bp-was svg line {
  stroke: var(--spoof-bright); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: bpSlash 600ms var(--ease-out) 500ms forwards;
}
@keyframes bpSlash { to { stroke-dashoffset: 0; } }
.bp-now { display: inline-flex; align-items: baseline; gap: 4px; }
.bp-now .num {
  font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(115deg, #fff 30%, var(--amber-bright) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bp-now .per { font-size: 14px; color: var(--bp-muted); }

.bp-save-chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 6px 11px; border-radius: 999px;
  color: #082014; background: linear-gradient(120deg, #35d28e, #1fae6e);
  box-shadow: 0 6px 16px -6px rgba(46,182,125,0.6);
}
.bp-save-chip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%);
  transform: translateX(-150%);
  animation: bpSheen 2.8s var(--ease) 1.2s infinite;
}
@keyframes bpSheen { 0% { transform: translateX(-150%); } 45%, 100% { transform: translateX(150%); } }

.bp-loss {
  margin-top: 12px; font-size: 13px; color: var(--fg-2); line-height: 1.5;
}
.bp-loss strong { color: var(--spoof-bright); font-weight: 600; }

.bp-bundle-feats {
  list-style: none; margin: 16px 0 18px; padding: 14px 0 0;
  border-top: 1px solid var(--line-1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.bp-bundle-feats li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-1); }
.bp-bundle-feats li svg { color: var(--green); flex: none; }
.bp-bundle-feats li .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); }
@media (max-width: 560px) { .bp-bundle-feats { grid-template-columns: 1fr; } }

/* big CTA */
.bp-cta {
  position: relative; overflow: hidden;
  width: 100%; height: 50px; border: 0; border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
  cursor: pointer; color: #0a0a0a;
  background: linear-gradient(120deg, var(--amber-bright), var(--amber) 55%, #f09800);
  box-shadow: 0 0 0 1px rgba(255,200,60,0.5) inset, 0 12px 30px -10px rgba(255,179,0,0.55);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: auto;
}
.bp-cta:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 0 0 1px rgba(255,210,80,0.7) inset, 0 18px 40px -10px rgba(255,179,0,0.7); }
.bp-cta:active { transform: translateY(0) scale(0.995); }
.bp-cta[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.bp-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%);
  transform: translateX(-160%) skewX(-8deg);
  animation: bpSheen 3.4s var(--ease) 0.8s infinite;
}
.bp-cta svg { transition: transform 200ms var(--ease); }
.bp-cta:hover svg { transform: translateX(3px); }
.bp-cta:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* the disclosure line is load-bearing copy — it must stay readable */
.bp-fine { margin-top: 10px; font-size: 11px; color: var(--fg-2); text-align: center; }

/* =======================================================================
   DECISION MODAL (conversion.js)
   ======================================================================= */
.upx-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(4,4,7,0.7);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  display: grid; place-items: center;
  padding: 28px 16px;
  overflow-y: auto;
  animation: upxFade 320ms var(--ease-out) both;
}
.upx-backdrop.closing { animation: upxFadeOut 220ms var(--ease) both; }
@keyframes upxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes upxFadeOut { from { opacity: 1; } to { opacity: 0; } }

.upx-modal {
  position: relative;
  width: 640px; max-width: 100%;
  border-radius: calc(var(--r-xl) + 1px);
  padding: 1.5px;
  margin: auto;
  background:
    conic-gradient(from var(--bp-a) at 50% 50%,
      rgba(255,179,0,0.08), rgba(255,179,0,0.9) 14%, rgba(255,140,0,0.3) 30%,
      rgba(255,179,0,0.08) 48%, rgba(255,179,0,0.65) 66%, rgba(255,179,0,0.08) 84%, rgba(255,179,0,0.08));
  animation: bpSpin 8s linear infinite, upxPop 520ms cubic-bezier(0.26, 1.3, 0.42, 1) both;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 90px -30px var(--amber-glow);
}
.upx-modal.wide { width: 980px; }
.upx-backdrop.closing .upx-modal { animation: upxPopOut 220ms var(--ease) both; }
@keyframes upxPop {
  from { opacity: 0; transform: translateY(26px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes upxPopOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(14px) scale(0.97); }
}

.upx-inner {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,179,0,0.13), transparent 55%),
    var(--bg-2);
  padding: 30px 30px 24px;
  overflow: hidden;
}

.upx-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  color: var(--fg-2); cursor: pointer;
  display: grid; place-items: center;
  transition: all 180ms var(--ease);
}
.upx-close:hover { color: var(--fg-0); border-color: var(--line-3); background: var(--bg-4); transform: rotate(90deg); }
.upx-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* staged reveals */
.upx-st { opacity: 0; transform: translateY(14px); animation: upxRise 600ms var(--ease-out) forwards; }
@keyframes upxRise { to { opacity: 1; transform: translateY(0); } }

.upx-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(255,179,0,0.35); background: var(--amber-soft);
}
.upx-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: upxBlink 1.6s ease-in-out infinite; }
@keyframes upxBlink { 0%,100% { opacity: 1; box-shadow: 0 0 10px var(--amber); } 50% { opacity: 0.35; box-shadow: none; } }

.upx-h {
  margin: 14px 0 6px; font-size: 25px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--fg-0); line-height: 1.15;
}
.upx-h em {
  font-style: normal;
  background: linear-gradient(115deg, var(--amber-bright), #ff8a3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.upx-sub { margin: 0 0 2px; font-size: 13.5px; color: var(--fg-2); line-height: 1.55; max-width: 520px; }
.upx-sub strong { color: var(--fg-0); font-weight: 600; }

/* operator-configured promo (real deadline or it doesn't render) */
.upx-promo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid rgba(255,179,0,0.35); border-radius: var(--r-md);
  background: var(--amber-soft);
  padding: 8px 12px; margin: 14px 0 0; font-size: 12.5px; color: var(--fg-1);
}
.upx-promo .upx-promo-badge {
  background: var(--amber); color: #1a1304; font-weight: 700; font-size: 11px;
  border-radius: 99px; padding: 2px 9px; white-space: nowrap;
}
.upx-promo .upx-promo-clock { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--amber); white-space: nowrap; }

/* hero price strip */
.upx-hero {
  margin-top: 20px;
  border: 1px solid rgba(255,179,0,0.22);
  background: linear-gradient(180deg, rgba(255,179,0,0.07), rgba(255,179,0,0.02));
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.upx-hero-lbl {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bp-muted); display: block; margin-bottom: 8px;
}
.upx-prices { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.upx-old { position: relative; font-size: 26px; font-weight: 550; color: var(--fg-3); letter-spacing: -0.02em; line-height: 1; }
.upx-old svg { position: absolute; inset: -7px -6px; width: calc(100% + 12px); height: calc(100% + 14px); overflow: visible; }
.upx-old svg line {
  stroke: var(--spoof-bright); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 110; stroke-dashoffset: 110;
  animation: bpSlash 550ms var(--ease-out) 650ms forwards;
  filter: drop-shadow(0 0 6px rgba(239,72,72,0.5));
}
.upx-prices > svg.arr { align-self: center; color: var(--fg-3); }
.upx-new {
  font-size: 40px; font-weight: 750; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(115deg, #fff 25%, var(--amber-bright) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: scale(0.6);
  animation: upxPriceIn 500ms cubic-bezier(0.26, 1.45, 0.45, 1) 950ms forwards;
}
.upx-new small { font-size: 14px; font-weight: 500; color: var(--bp-muted); -webkit-text-fill-color: var(--bp-muted); }
@keyframes upxPriceIn { to { opacity: 1; transform: scale(1); } }
.upx-pct {
  align-self: center;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  color: #082014; padding: 5px 10px; border-radius: 8px;
  background: linear-gradient(120deg, #35d28e, #1fae6e);
  box-shadow: 0 6px 16px -6px rgba(46,182,125,0.7);
  opacity: 0; transform: scale(0.5) rotate(-8deg);
  animation: upxBadgeIn 450ms cubic-bezier(0.26, 1.5, 0.45, 1) 1200ms forwards;
}
@keyframes upxBadgeIn { to { opacity: 1; transform: scale(1) rotate(-3deg); } }
.upx-lock { margin-top: 9px; font-size: 11.5px; color: var(--bp-muted); font-family: var(--font-mono); }

.upx-saving { text-align: right; flex: none; }
.upx-saving-num {
  display: block; font-size: 32px; font-weight: 750; letter-spacing: -0.03em; line-height: 1;
  color: #3bdb96;
  text-shadow: 0 0 24px rgba(46,182,125,0.35);
  font-variant-numeric: tabular-nums;
}
.upx-saving-lbl { display: block; margin-top: 5px; font-size: 11px; color: var(--fg-3); max-width: 130px; line-height: 1.4; }

/* bundle toggle (when more than one pairing applies) */
.upx-toggle {
  display: inline-flex; gap: 4px; margin-top: 18px;
  padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1);
}
.upx-toggle button {
  border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 550;
  background: transparent; color: var(--fg-2);
  transition: all 200ms var(--ease);
}
.upx-toggle button.on { background: var(--amber); color: #0a0a0a; font-weight: 650; box-shadow: 0 4px 12px -4px rgba(255,179,0,0.5); }
.upx-toggle button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* comparison table */
.upx-cmp { margin-top: 18px; border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; }
.upx-cmp-row {
  display: grid; grid-template-columns: 1.25fr 1fr 1.15fr;
  align-items: stretch;
  border-top: 1px solid var(--line-1);
  opacity: 0; transform: translateY(8px);
  animation: upxRise 480ms var(--ease-out) forwards;
}
.upx-cmp-row:first-child { border-top: 0; }
.upx-cmp-row > div {
  padding: 9px 14px; font-size: 12.5px; display: flex; align-items: center; gap: 7px;
  min-height: 38px;
}
.upx-cmp-row .lbl { color: var(--fg-2); }
.upx-cmp-row .only { color: var(--bp-muted); border-left: 1px solid var(--line-1); }
.upx-cmp-row .only svg { color: var(--fg-3); flex: none; }
.upx-cmp-row .only.bad { color: var(--spoof-bright); }
.upx-cmp-row .only.bad svg { color: var(--spoof); }
.upx-cmp-row .bun {
  color: var(--fg-0); font-weight: 550;
  border-left: 1px solid rgba(255,179,0,0.25);
  background: linear-gradient(90deg, rgba(255,179,0,0.09), rgba(255,179,0,0.03));
}
.upx-cmp-row .bun svg { color: var(--green); flex: none; }
.upx-cmp-row .bun .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); }
.upx-cmp-row.head > div {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bp-muted); background: var(--bg-1); min-height: 32px; padding-top: 7px; padding-bottom: 7px;
}
.upx-cmp-row.head .bun { color: var(--amber); background: linear-gradient(90deg, rgba(255,179,0,0.14), rgba(255,179,0,0.06)); font-weight: 650; }
.upx-cmp-row.total > div { border-top: 1px solid var(--line-2); font-weight: 650; color: var(--fg-1); }
.upx-cmp-row.total .bun { font-size: 14px; }

/* CTAs */
.upx-ctas { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.upx-cta {
  position: relative; overflow: hidden;
  min-height: 52px; border: 0; border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; color: #0a0a0a;
  background: linear-gradient(120deg, var(--amber-bright), var(--amber) 55%, #f09800);
  box-shadow: 0 0 0 1px rgba(255,205,70,0.55) inset, 0 14px 34px -10px rgba(255,179,0,0.6);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none;
}
.upx-cta:hover { transform: translateY(-1px) scale(1.012); box-shadow: 0 0 0 1px rgba(255,215,90,0.75) inset, 0 20px 46px -10px rgba(255,179,0,0.75); }
.upx-cta:active { transform: scale(0.99); }
.upx-cta[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.upx-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.6) 50%, transparent 62%);
  transform: translateX(-160%) skewX(-8deg);
  animation: bpSheen 3s var(--ease) 1.6s infinite;
}
.upx-cta svg { transition: transform 200ms var(--ease); }
.upx-cta:hover svg { transform: translateX(3px); }
.upx-cta:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.upx-decline {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--fg-3);
  padding: 7px; border-radius: 8px;
  transition: color 180ms var(--ease);
  align-self: center; display: inline-flex; flex-direction: column; gap: 2px; align-items: center;
}
.upx-decline:hover { color: var(--fg-1); }
.upx-decline .warn { font-size: 11px; color: var(--fg-2); }
.upx-decline:hover .warn { color: var(--spoof-bright); }
.upx-decline:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.upx-status { margin: 12px 0 0; font-size: 12px; color: var(--spoof-bright); text-align: center; min-height: 0; }
.upx-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-1); font-size: 10.5px; color: var(--fg-2); text-align: center; line-height: 1.5; }

/* Pairing-toggle re-render: only the table rows replay their stagger — the
   hero/toggle/CTA blocks land instantly and animated price bits stay landed. */
#convDyn.no-anim .upx-hero, #convDyn.no-anim .upx-toggle, #convDyn.no-anim .upx-ctas { animation: none; opacity: 1; transform: none; }
#convDyn.no-anim .upx-old svg line { animation: none; stroke-dashoffset: 0; }
#convDyn.no-anim .upx-new { animation: none; opacity: 1; transform: scale(1); }
#convDyn.no-anim .upx-pct { animation: none; opacity: 1; transform: scale(1) rotate(-3deg); }

/* ---------- option-card grid (credits prompts, generic decision states) ---- */
.upx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.upx-opt {
  position: relative;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--bg-1);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.upx-opt:hover { transform: translateY(-2px); border-color: var(--line-3); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8); }
.upx-opt.is-featured {
  border-color: rgba(255,179,0,0.55);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,179,0,0.1), transparent 55%),
    var(--bg-1);
}
.upx-opt.is-featured:hover { border-color: var(--amber); box-shadow: 0 18px 44px -20px rgba(255,179,0,0.25); }
.upx-opt h4 { margin: 2px 0 0; font-size: 15px; color: var(--fg-0); letter-spacing: -0.005em; }
.upx-flag {
  position: absolute; top: -10px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px;
  background: linear-gradient(120deg, var(--amber), #ffd34d); color: #0a0a0a;
  box-shadow: 0 6px 18px -4px rgba(255,179,0,0.45);
}
.upx-price { font-size: 24px; font-weight: 650; color: var(--fg-0); letter-spacing: -0.02em; }
.upx-price .per { font-size: 12px; color: var(--fg-3); font-weight: 400; }
.upx-price .was { font-size: 13px; color: var(--fg-3); text-decoration: line-through; margin-left: 7px; font-weight: 400; }
.upx-line { font-size: 12.5px; color: var(--fg-2); line-height: 1.5; margin: 0; }
.upx-save-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 3px 9px;
  color: #082014; background: linear-gradient(120deg, #35d28e, #1fae6e);
}
.upx-save { font-size: 12px; color: var(--amber); font-weight: 600; }
.upx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.upx-chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--fg-2);
}
.upx-rows { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.upx-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--fg-2); }
.upx-row b { color: var(--fg-1); font-weight: 600; text-align: right; }
.upx-total { font-size: 12px; color: var(--fg-2); border-top: 1px dashed var(--line-2); padding-top: 8px; line-height: 1.5; }
.upx-opt .upx-cta { min-height: 42px; font-size: 13.5px; margin-top: auto; }
.upx-opt .upx-ghost { margin-top: auto; }
.upx-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 550; color: var(--fg-1);
  cursor: pointer; text-decoration: none;
  transition: all 200ms var(--ease);
}
.upx-ghost:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--fg-0); }
.upx-ghost:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.upx-alt { margin: 14px 0 0; display: flex; justify-content: center; }

@media (max-width: 560px) {
  .upx-inner { padding: 24px 18px 18px; }
  .upx-saving { text-align: left; }
  .upx-cmp-row { grid-template-columns: 1.1fr 0.85fr 1fr; }
  .upx-cmp-row > div { padding: 8px 10px; font-size: 11.5px; }
  .upx-grid { grid-template-columns: 1fr; }
}

/* reduced motion: everything lands instantly */
@media (prefers-reduced-motion: reduce) {
  .bp-bundle, .upx-modal, .upx-backdrop { animation-duration: 0.01ms !important; }
  .bp-bundle:hover, .upx-opt:hover, .bp-cta:hover, .upx-cta:hover { transform: none; }
  .bp-was svg line, .upx-old svg line { animation: none; stroke-dashoffset: 0; }
  .upx-new, .upx-pct, .upx-st, .upx-cmp-row { animation: none; opacity: 1; transform: none; }
  .bp-cta::after, .upx-cta::after, .bp-save-chip::after, .bp-bundle-glow, .upx-eyebrow .dot { animation: none; }
}
