/* ============================================================================
   AVH Studios — Token Bound page
   ----------------------------------------------------------------------------
   The "Token Bound" registry: every hybrid voice rendered as a majestic 3D
   profile card. CSS 3D (perspective + rotateX/rotateY) driven by a tiny JS tilt
   handler; glowing gradient borders, an aurora + drifting-particle backdrop and a
   holographic sheen. Built entirely on the brand tokens in brand.css.
   ========================================================================== */

:root {
  --tb-radius: 22px;
  --tb-tilt: 9deg;              /* max rotation on hover */
  --tb-glow: 0 0 0 1px rgba(255, 107, 53, .0), 0 30px 80px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- page shell */
.tb-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Aurora backdrop: soft, slowly drifting colour fields behind everything. */
.tb-aurora {
  position: fixed;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 18% 22%, rgba(255, 107, 53, .20), transparent 60%),
    radial-gradient(42% 38% at 82% 18%, rgba(53, 194, 255, .18), transparent 62%),
    radial-gradient(50% 45% at 70% 85%, rgba(53, 255, 158, .14), transparent 60%),
    radial-gradient(40% 40% at 25% 88%, rgba(150, 90, 255, .14), transparent 62%);
  filter: blur(10px) saturate(120%);
  animation: tb-aurora-drift 26s ease-in-out infinite alternate;
}
@keyframes tb-aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.04); }
}

/* Particle canvas sits just above the aurora, below the content. */
#tbParticles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
}

.tb-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ------------------------------------------------------------------- hero */
.tb-hero {
  text-align: center;
  padding: 26px 0 8px;
}
.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(23, 26, 33, .6);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.tb-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
}
.tb-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.06;
  margin: 18px auto 12px;
  max-width: 16ch;
  letter-spacing: -.02em;
}
.tb-hero .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tb-lead {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

.tb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 26px auto 4px;
}
.tb-stat {
  min-width: 150px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 34, 43, .85), rgba(23, 26, 33, .85));
  backdrop-filter: blur(8px);
}
.tb-stat b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tb-stat span { font-size: .76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }

/* --------------------------------------------------------------- toolbar */
.tb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 22px;
}
.tb-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.tb-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
}
.tb-search .ico { color: var(--text-dim); }
.tb-toolbar-right { display: flex; align-items: center; gap: 12px; }
.tb-count { color: var(--text-dim); font-size: .9rem; }
.tb-select {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

/* ------------------------------------------------------------------ grid */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  perspective: 1400px;
}

/* ------------------------------------------------------------------ card */
.tb-card {
  position: relative;
  border-radius: var(--tb-radius);
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  animation: tb-rise .6s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes tb-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The tilt target. JS sets --rx / --ry / --mx / --my on .tb-card. */
.tb-card-inner {
  position: relative;
  border-radius: var(--tb-radius);
  padding: 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(30, 34, 43, .92), rgba(20, 23, 29, .96));
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(0);
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  box-shadow: var(--tb-glow);
  overflow: hidden;
}

/* Glowing gradient border (kept crisp via a masked ring). */
.tb-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 107, 53, .85),
    rgba(53, 194, 255, .55) 45%,
    rgba(53, 255, 158, .65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  transition: opacity .3s ease;
  pointer-events: none;
}

/* Holographic sheen that follows the pointer. */
.tb-sheen {
  position: absolute;
  inset: -40%;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 40%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.tb-card:hover .tb-card-inner {
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 107, 53, .18);
}
.tb-card:hover .tb-card-inner::before { opacity: 1; }
.tb-card:hover .tb-sheen { opacity: 1; }

/* ---- card head ---- */
.tb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transform: translateZ(28px);
}
.tb-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 17, 21, .6);
}
.tb-soul {
  font-size: .7rem;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .04em;
}

/* ---- collaborators ---- */
.tb-people {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  transform: translateZ(40px);
}
.tb-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  overflow: hidden;
  flex: none;
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-avatar-anon {
  background: linear-gradient(135deg, #3a4150, #262b35);
  color: var(--text-dim);
  letter-spacing: .04em;
  border-color: rgba(255, 255, 255, .08);
}
.tb-amp {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-style: italic;
}
.tb-people-names { margin-left: auto; text-align: right; }
.tb-people-names .who { font-size: .82rem; color: var(--text); }
.tb-people-names .who.dim { color: var(--text-dim); }
.tb-people-names .amp { color: var(--text-dim); }

/* ---- titles ---- */
.tb-hybrid-name {
  margin: 6px 0 2px;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  transform: translateZ(34px);
  background: linear-gradient(100deg, #fff, #cfd6e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tb-song {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: .92rem;
  transform: translateZ(24px);
}
.tb-song em { color: var(--accent-2); font-style: normal; }

/* ---- supply meter ---- */
.tb-supply { transform: translateZ(26px); }
.tb-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tb-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(255, 107, 53, .5);
  transition: width .8s cubic-bezier(.2, .7, .2, 1);
}
.tb-supply-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: .76rem;
  color: var(--text-dim);
}
.tb-supply-legend b { color: var(--text); font-weight: 600; }

/* ---- price / buy buttons ---- */
.tb-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  transform: translateZ(30px);
}
.tb-buy {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 10px;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.tb-buy small { font-weight: 500; color: var(--text-dim); font-size: .72rem; }
.tb-buy:hover { transform: translateY(-2px); border-color: var(--accent); }
.tb-buy:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.tb-buy-license {
  background: linear-gradient(135deg, rgba(255, 107, 53, .18), rgba(53, 194, 255, .16));
  border-color: rgba(255, 107, 53, .5);
}
.tb-buy-license:hover { border-color: var(--accent-2); }
.tb-buy .price { font-size: 1rem; }

/* ---- footer link row inside card ---- */
.tb-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: .74rem;
  color: var(--text-dim);
  transform: translateZ(18px);
}
.tb-card-foot a { color: var(--accent-2); }

/* --------------------------------------------------------------- states */
.tb-empty,
.tb-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--tb-radius);
  background: rgba(23, 26, 33, .5);
}
.tb-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: tb-spin .8s linear infinite;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- modal */
.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(6px);
}
.tb-modal.open { display: flex; }
.tb-modal-card {
  position: relative;
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--tb-radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 34, 43, .98), rgba(17, 19, 24, .99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  padding: 28px;
  animation: tb-pop .28s cubic-bezier(.2, .7, .2, 1);
}
@keyframes tb-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.tb-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
.tb-modal-close:hover { border-color: var(--accent); }
.tb-modal h2 { margin: 4px 0 4px; font-size: 1.7rem; }
.tb-modal .tb-song { font-size: 1rem; }
.tb-modal-people {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 17, 21, .5);
}
.tb-modal-person { display: flex; align-items: center; gap: 12px; }
.tb-modal-person .meta { line-height: 1.25; }
.tb-modal-person .meta b { display: block; }
.tb-modal-person .meta span { color: var(--text-dim); font-size: .82rem; }
.tb-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.tb-modal-cell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(23, 26, 33, .6);
}
.tb-modal-cell span { display: block; font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.tb-modal-cell b { font-size: 1.15rem; }
.tb-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.tb-modal-actions .tb-buy { padding: 16px; }
.tb-modal-note { margin-top: 16px; font-size: .78rem; color: var(--text-dim); line-height: 1.55; }
.tb-chain {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.tb-chain a { color: var(--accent-2); }
.tb-chain code {
  background: rgba(255, 255, 255, .06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .74rem;
}

/* --------------------------------------------------------------- toast */
.tb-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  max-width: 90vw;
}
.tb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tb-toast.err { border-color: var(--danger); }
.tb-toast.ok { border-color: var(--accent-3); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .tb-grid { grid-template-columns: 1fr; }
  .tb-modal-actions { grid-template-columns: 1fr; }
  .tb-people-names { display: none; }
}

/* Respect reduced-motion: kill the tilt/animations for accessibility. */
@media (prefers-reduced-motion: reduce) {
  .tb-aurora { animation: none; }
  .tb-card { animation: none; opacity: 1; }
  .tb-card-inner { transition: none; }
}

/* ============================================================================
   Master Buyout - offer UI, collaborator keys, retired state
   ========================================================================== */

/* ---- retired card state ---- */
.tb-card-retired { filter: saturate(.9); }
.tb-card-retired .tb-card-inner { border-color: rgba(53, 255, 158, .35); }
.tb-soul-retired { color: var(--accent-3); border-color: rgba(53, 255, 158, .5); }

.tb-retired-note {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(53, 255, 158, .35);
  background: linear-gradient(135deg, rgba(53, 255, 158, .12), rgba(53, 194, 255, .06));
}
.tb-retired-note small { color: var(--text-dim); font-size: .76rem; line-height: 1.4; }
.tb-retired-badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #06120c;
  background: linear-gradient(135deg, var(--accent-3), #9cffcf);
  padding: 4px 10px; border-radius: 999px;
}
.tb-retired-note-modal { margin-top: 16px; }

/* ---- demo card (illustrative, not for sale) ---- */
.tb-card-demo { filter: saturate(.96); }
.tb-card-demo .tb-card-inner { border-style: dashed; border-color: rgba(53, 194, 255, .45); }
.tb-soul-demo { color: var(--accent-2); }
.tb-demo-note {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px dashed rgba(53, 194, 255, .45);
  background: linear-gradient(135deg, rgba(53, 194, 255, .12), rgba(255, 107, 53, .05));
}
.tb-demo-note small { color: var(--text-dim); font-size: .76rem; line-height: 1.4; }
.tb-demo-badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #04121a;
  background: linear-gradient(135deg, var(--accent-2), #9fe4ff);
  padding: 4px 10px; border-radius: 999px;
}
.tb-demo-cta {
  margin-top: 10px; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: .84rem;
  color: var(--text); border: 1px solid var(--border); background: var(--panel-2);
  transition: border-color .2s, background .2s, transform .15s;
}
.tb-demo-cta:hover { border-color: var(--accent-2); background: rgba(53, 194, 255, .12); transform: translateY(-1px); }
.tb-demo-note-modal { margin-top: 16px; }
.tb-demo-cta-modal { margin-top: 14px; display: inline-flex; }

/* ---- buyout chip on the card ---- */
.tb-buyout-chip {
  margin-top: 10px; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(255, 107, 53, .5);
  background: rgba(255, 107, 53, .06); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.tb-buyout-chip small { color: var(--text-dim); font-weight: 500; }
.tb-buyout-chip:hover { border-color: var(--accent); background: rgba(255, 107, 53, .12); transform: translateY(-1px); }

/* ---- my offers (page section) ---- */
.tb-myoffers { margin: 0 0 26px; }
.tb-myoffers-head h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tb-myoffers-list { display: flex; flex-direction: column; gap: 8px; }
.tb-myoffer {
  display: grid; grid-template-columns: 1.4fr auto auto auto; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font: inherit; transition: border-color .2s, transform .15s;
}
.tb-myoffer:hover { border-color: var(--accent); transform: translateY(-1px); }
.tb-myoffer-name { font-weight: 600; }
.tb-myoffer-amt { font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 700; }
.tb-myoffer-role { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }

/* ---- buyout section inside the modal ---- */
.tb-buyout { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.tb-buyout-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.15rem; }
.tb-buyout-key { font-size: 1.1rem; }
.tb-buyout-head p { margin: 0 0 12px; font-size: .88rem; line-height: 1.5; }
.tb-buyout-terms { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tb-buyout-terms span {
  font-size: .8rem; color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2);
}
.tb-buyout-terms b { color: var(--text); }
.tb-buyout-terms .tb-reserve { border-color: rgba(53, 255, 158, .4); }
.tb-buyout-terms .tb-reserve em { color: var(--accent-3); font-style: normal; font-size: .72rem; }

.tb-buyout-role, .tb-buyout-cta, .tb-buyout-empty, .tb-buyout-fine, .tb-buyout-err {
  font-size: .84rem; color: var(--text-dim); line-height: 1.5;
}
.tb-buyout-role { margin: 10px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(53, 194, 255, .07); border: 1px solid rgba(53, 194, 255, .25); color: var(--text); }
.tb-buyout-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.tb-buyout-empty { padding: 12px 0; }
.tb-buyout-fine { margin-top: 10px; font-size: .76rem; }
.tb-buyout-err { color: var(--danger); }
.tb-buyout-loading { display: flex; justify-content: center; padding: 18px; }

.tb-acquired {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(53, 255, 158, .35);
  background: linear-gradient(135deg, rgba(53, 255, 158, .1), rgba(53, 194, 255, .05));
}
.tb-acquired p { margin: 0; font-size: .88rem; line-height: 1.5; }

/* ---- settlement preview (collaborators only) ---- */
.tb-settlement {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed rgba(255, 107, 53, .4); background: rgba(255, 107, 53, .06);
}
.tb-settlement-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.tb-settlement p { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; }
/* The collaborator remainder, split per the locked split agreement. */
.tb-settlement-collab { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 107, 53, .3); }
.tb-settlement-collab-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted);
}
.tb-settlement-collab-pct { color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tb-settlement-collab-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 6px; font-size: .86rem;
}
.tb-settlement-collab-row.me { font-weight: 700; }
.tb-settlement-collab-name { color: var(--text); }
.tb-settlement-collab-p { color: var(--muted); font-weight: 600; font-size: .78rem; }
.tb-settlement-collab-amt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-2, #35c2ff); }
.tb-settlement-note { font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* ---- offer card ---- */
.tb-offer {
  margin: 10px 0; padding: 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--panel-2);
}
.tb-offer.terminal { opacity: .72; }
.tb-offer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tb-offer-amount { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tb-offer-status { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tb-offer-status.info { background: rgba(53, 194, 255, .15); color: var(--accent-2); }
.tb-offer-status.good { background: rgba(53, 255, 158, .15); color: var(--accent-3); }
.tb-offer-status.ok { background: rgba(53, 255, 158, .25); color: #baffdc; }
.tb-offer-status.warn { background: rgba(255, 196, 53, .16); color: #ffd479; }
.tb-offer-status.bad { background: rgba(255, 90, 90, .15); color: #ff9a9a; }
.tb-offer-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; font-size: .78rem; color: var(--text-dim); }
.tb-reserve-hit { color: var(--accent-3); font-weight: 700; }
.tb-offer-msg { margin: 8px 0; font-size: .86rem; font-style: italic; color: var(--text); }
.tb-counter { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 196, 53, .1); font-size: .84rem; }

/* ---- collaborator keys ---- */
.tb-keys { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.tb-key { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.tb-key-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; }
.tb-key.on .tb-key-dot { background: var(--accent-3); box-shadow: 0 0 8px rgba(53, 255, 158, .7); }
.tb-key-name { flex: 1; color: var(--text); }
.tb-key-state { font-size: .74rem; color: var(--text-dim); }
.tb-key-btn {
  font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); transition: border-color .2s, background .2s;
}
.tb-key-btn:hover { border-color: var(--accent-3); background: rgba(53, 255, 158, .1); }

/* ---- buttons ---- */
.tb-offer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tb-btn {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); transition: transform .15s, border-color .2s, background .2s;
}
.tb-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.tb-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.tb-btn-primary { background: linear-gradient(135deg, var(--accent), #ff9a5a); border-color: transparent; color: #1a0d06; }
.tb-btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
.tb-btn-ghost { background: transparent; }

/* ---- offer form ---- */
.tb-offer-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.tb-field { display: flex; flex-direction: column; gap: 5px; }
.tb-field > span { font-size: .78rem; color: var(--text-dim); }
.tb-field > span em { font-style: normal; opacity: .7; }
.tb-field input, .tb-field textarea, .tb-field select {
  font: inherit; font-size: .9rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
.tb-field input:focus, .tb-field textarea:focus, .tb-field select:focus { outline: none; border-color: var(--accent); }
.tb-offer-submit { align-self: flex-start; }
.tb-buyout-mine { margin-top: 18px; }
.tb-buyout-mine h4 { margin: 0 0 8px; font-size: .95rem; }

@media (max-width: 640px) {
  .tb-myoffer { grid-template-columns: 1fr auto; }
  .tb-myoffer-role { display: none; }
}


/* ---- play buttons (card song + expanded-view sample) ---- */
.tb-card-audio {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 14px; transform: translateZ(28px);
}
.tb-card-audio-note { font-size: .72rem; color: var(--text-dim); }
.tb-play {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.tb-play:hover { transform: translateY(-1px); border-color: var(--accent-2); }
.tb-play:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.tb-play-icon {
  width: 0; height: 0; display: inline-block; flex: none;
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--accent-2);
  transition: all .15s ease;
}
.tb-play.playing .tb-play-icon {
  width: 10px; height: 12px; border: none;
  background: linear-gradient(90deg, var(--accent-2) 0 40%, transparent 40% 60%, var(--accent-2) 60% 100%);
}
.tb-play-card {
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(53, 194, 255, .14), rgba(255, 107, 53, .12));
  border-color: rgba(53, 194, 255, .4);
}
.tb-play-card.playing { border-color: var(--accent); }
.tb-modal-audio { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }

/* ---- buyout closed (creators have not both opted in) ---- */
.tb-buyout-chip-closed {
  border-style: solid; border-color: var(--border); background: var(--panel-2);
  opacity: .75; cursor: not-allowed;
}
.tb-buyout-chip-closed:hover { transform: none; border-color: var(--border); background: var(--panel-2); }
.tb-buyout-closed { border-color: var(--border); }

/* ---- card: the blended-voice sample play button (2nd play on the card) ---- */
.tb-play-sample {
  border-color: rgba(53, 255, 158, .4);
  background: linear-gradient(135deg, rgba(53, 255, 158, .12), rgba(53, 194, 255, .08));
}
.tb-play-sample .tb-play-icon { border-left-color: var(--accent-3); }
.tb-play-sample.playing { border-color: var(--accent-3); }
.tb-play-sample.playing .tb-play-icon {
  background: linear-gradient(90deg, var(--accent-3) 0 40%, transparent 40% 60%, var(--accent-3) 60% 100%);
}

/* ---- voice-license chip on the card ---- */
.tb-voice-chip {
  margin-top: 8px; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(53, 255, 158, .5);
  background: rgba(53, 255, 158, .07); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.tb-voice-chip small { color: var(--text-dim); font-weight: 500; }
.tb-voice-chip:hover { border-color: var(--accent-3); background: rgba(53, 255, 158, .14); transform: translateY(-1px); }

/* ---- voice-license section (expanded modal) ---- */
.tb-voice { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.tb-voice-head h3 { margin: 0 0 6px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.tb-voice-ico { font-size: 1.15rem; }
.tb-voice-head p { margin: 0 0 14px; font-size: .86rem; }
.tb-voice-terms {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 14px;
  font-size: .86rem; color: var(--text-dim);
}
.tb-voice-terms b { color: var(--text); }
.tb-voice-buy { width: 100%; justify-content: center; }
.tb-voice-buy-dev { width: 100%; justify-content: center; margin-top: 8px; }
.tb-voice-fine { margin: 10px 0 0; font-size: .74rem; color: var(--text-dim); }
.tb-voice-cta { margin: 0 0 6px; }
.tb-voice-closed {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  background: var(--panel-2);
}
.tb-voice-closed p { margin: 0 0 6px; font-size: .86rem; }
.tb-voice-own {
  border: 1px solid rgba(53, 194, 255, .32); border-radius: 14px; padding: 13px 16px;
  background: linear-gradient(135deg, rgba(53, 194, 255, .10), rgba(53, 255, 158, .06));
  font-size: .86rem; color: var(--text-dim); line-height: 1.5;
}
.tb-voice-own b { color: var(--text); }
.tb-voice-mine { margin-top: 18px; }
.tb-voice-mine h4 { margin: 0 0 8px; font-size: .95rem; }
.tb-voice-license {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  background: var(--panel-2); margin-bottom: 8px;
}
.tb-voice-license.used { border-color: rgba(53, 255, 158, .35); }
.tb-voice-license-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tb-voice-license-price { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.tb-voice-license-status { font-size: .8rem; color: var(--text-dim); }
.tb-voice-license.used .tb-voice-license-status { color: var(--accent-3); }
.tb-voice-claim { display: flex; gap: 8px; margin-top: 10px; }
.tb-voice-song {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .84rem;
}
.tb-voice-song:focus { outline: none; border-color: var(--accent-2); }

/* ============================================================================
   BLEND HERO ANIMATION  (see token-bound.html -> .tb-blend)
   ----------------------------------------------------------------------------
   Two neon talking heads (brand orange + brand blue) that drift together and
   BLEND into a single soul-bound head, then split back — on a seamless 12s loop.
   Built with the exact animation language of the Re-Production Studio intro
   card (wz-welcome-card in flow.css): a rotating neon conic edge, a drifting
   grid, floating glows, a scan line, an animated equalizer and a pulsing live
   dot. Pure CSS (no JS) so it is cheap and never fights the card renderer.
   ========================================================================== */

@property --tb-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.tb-blend {
  --tb-spread: 98px;                 /* half-distance between the two heads */
  --tb-cycle: 12s;                   /* the blend loop length */
  position: relative;
  width: min(760px, 100%);
  margin: 2px auto 34px;
  border-radius: 22px;
  border: 1px solid rgba(120, 140, 160, .22);
  background: linear-gradient(180deg, rgba(24, 28, 36, .92), rgba(11, 13, 17, .95));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: tbBlendIn .5s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes tbBlendIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---- animated backdrop (grid / glows / scan) ----------------------------- */
.tb-blend-grid {
  position: absolute; inset: -2px; z-index: 0;
  background-image:
    linear-gradient(rgba(53, 194, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 194, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 46%, #000 0%, transparent 78%);
  mask-image: radial-gradient(78% 78% at 50% 46%, #000 0%, transparent 78%);
  animation: tbBlendGrid 26s linear infinite;
}
@keyframes tbBlendGrid { to { background-position: 46px 46px, 46px 46px; } }

.tb-blend-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: 0; }
.tb-blend-glow-1 { width: 420px; height: 420px; background: rgba(255, 107, 53, .34); top: -160px; left: -80px; animation: tbBlendFloat 13s ease-in-out infinite; }
.tb-blend-glow-2 { width: 480px; height: 480px; background: rgba(53, 194, 255, .28); bottom: -200px; right: -110px; animation: tbBlendFloat 16s ease-in-out infinite reverse; }
@keyframes tbBlendFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(26px, 20px, 0); } }

.tb-blend-scan {
  position: absolute; left: 0; right: 0; height: 150px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(53, 194, 255, .07), transparent);
  animation: tbBlendScan 7.5s linear infinite;
}
@keyframes tbBlendScan { from { top: -150px; } to { top: 100%; } }

/* ---- rotating neon edge (identical technique to wz-welcome-card::before) -- */
.tb-blend-edge {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--tb-ang),
    transparent 0 55%,
    rgba(53, 194, 255, .85) 72%,
    rgba(255, 107, 53, .9) 84%,
    rgba(53, 255, 158, .8) 92%,
    transparent 100%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: tbBlendSpin 6s linear infinite;
  pointer-events: none;
}
@keyframes tbBlendSpin { to { --tb-ang: 360deg; } }

/* ---- content layer ------------------------------------------------------- */
.tb-blend-inner { position: relative; z-index: 2; padding: 26px 22px 20px; text-align: center; }

.tb-blend-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(23, 26, 33, .55);
  border-radius: 999px; padding: 6px 13px;
}
.tb-blend-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3);
  animation: tbBlendPulse 1.6s ease-in-out infinite;
}
@keyframes tbBlendPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

.tb-blend-title {
  margin: 14px 0 4px;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: -.01em;
  color: var(--text);
}
.tb-blend-title span {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- the stage: two heads + the merged head ------------------------------ */
.tb-blend-stage { position: relative; height: 190px; margin: 4px auto 0; }
@media (max-width: 620px) { .tb-blend-stage { height: 158px; } }

.tb-head {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 138px; margin: -69px 0 0 -60px;
  color: var(--tb-neon, var(--accent));
  will-change: transform, opacity;
}
@media (max-width: 620px) { .tb-head { width: 92px; height: 106px; margin: -53px 0 0 -46px; } }

.tb-head-inner { width: 100%; height: 100%; will-change: transform, filter; }

/* neon per head */
.tb-head-a { --tb-neon: var(--accent);   z-index: 2; animation: tbHeadA var(--tb-cycle) ease-in-out infinite; }
.tb-head-b { --tb-neon: var(--accent-2); z-index: 2; animation: tbHeadB var(--tb-cycle) ease-in-out infinite; }
.tb-head-merged { --tb-neon: var(--accent-3); z-index: 3; opacity: 0; animation: tbHeadMerged var(--tb-cycle) ease-in-out infinite; }

.tb-head-a .tb-head-inner { filter: drop-shadow(0 0 10px rgba(255, 107, 53, .7)); animation: tbBlendBob 3.4s ease-in-out -0.3s infinite, tbGlowA 3.2s ease-in-out infinite; }
.tb-head-b .tb-head-inner { filter: drop-shadow(0 0 10px rgba(53, 194, 255, .7)); animation: tbBlendBob 3.9s ease-in-out -1.1s infinite, tbGlowB 3.6s ease-in-out infinite; }
.tb-head-merged .tb-head-inner { filter: drop-shadow(0 0 10px rgba(53, 255, 158, .7)); animation: tbBlendBob 3.6s ease-in-out -0.7s infinite, tbGlowBlend 2.8s ease-in-out infinite; }

@keyframes tbBlendBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* the two heads drift apart, converge, blend, then split back (seamless) */
@keyframes tbHeadA {
  0%   { transform: translateX(calc(var(--tb-spread) * -1)) scale(1);    opacity: 1; }
  34%  { transform: translateX(calc(var(--tb-spread) * -1)) scale(1);    opacity: 1; }
  48%  { transform: translateX(calc(var(--tb-spread) * -0.17)) scale(.86); opacity: 1; }
  56%  { transform: translateX(0) scale(.72);                            opacity: 0; }
  70%  { transform: translateX(0) scale(.72);                            opacity: 0; }
  78%  { transform: translateX(calc(var(--tb-spread) * -0.17)) scale(.86); opacity: 1; }
  92%  { transform: translateX(calc(var(--tb-spread) * -1)) scale(1);    opacity: 1; }
  100% { transform: translateX(calc(var(--tb-spread) * -1)) scale(1);    opacity: 1; }
}
@keyframes tbHeadB {
  0%   { transform: translateX(var(--tb-spread)) scale(1);             opacity: 1; }
  34%  { transform: translateX(var(--tb-spread)) scale(1);             opacity: 1; }
  48%  { transform: translateX(calc(var(--tb-spread) * 0.17)) scale(.86); opacity: 1; }
  56%  { transform: translateX(0) scale(.72);                          opacity: 0; }
  70%  { transform: translateX(0) scale(.72);                          opacity: 0; }
  78%  { transform: translateX(calc(var(--tb-spread) * 0.17)) scale(.86); opacity: 1; }
  92%  { transform: translateX(var(--tb-spread)) scale(1);             opacity: 1; }
  100% { transform: translateX(var(--tb-spread)) scale(1);             opacity: 1; }
}
@keyframes tbHeadMerged {
  0%   { transform: translateX(0) scale(.72); opacity: 0; }
  48%  { transform: translateX(0) scale(.72); opacity: 0; }
  58%  { transform: translateX(0) scale(1);   opacity: 1; }
  70%  { transform: translateX(0) scale(1);   opacity: 1; }
  80%  { transform: translateX(0) scale(.72); opacity: 0; }
  100% { transform: translateX(0) scale(.72); opacity: 0; }
}

/* the blend flash ring, pulsing at the moment of the merge (and the split) */
.tb-blend-burst {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 2px solid rgba(53, 255, 158, .8);
  box-shadow: 0 0 34px rgba(53, 255, 158, .5), inset 0 0 24px rgba(53, 194, 255, .35);
  opacity: 0; pointer-events: none;
  animation: tbBlendBurst var(--tb-cycle) ease-out infinite;
}
@keyframes tbBlendBurst {
  0%, 50%  { transform: translate(0, 0) scale(.35); opacity: 0; }
  55%      { transform: translate(0, 0) scale(.95); opacity: .95; }
  63%      { transform: translate(0, 0) scale(1.7); opacity: 0; }
  72%      { transform: translate(0, 0) scale(.35); opacity: 0; }
  77%      { transform: translate(0, 0) scale(.95); opacity: .95; }
  85%      { transform: translate(0, 0) scale(1.7); opacity: 0; }
  100%     { transform: translate(0, 0) scale(.35); opacity: 0; }
}

/* a neon connection beam that lights up as the two voices lock together */
.tb-blend-beam {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: 190px; height: 3px; margin: -1.5px 0 0 -95px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  box-shadow: 0 0 18px rgba(53, 194, 255, .55);
  opacity: 0; transform-origin: center; pointer-events: none;
  animation: tbBlendBeam var(--tb-cycle) ease-in-out infinite;
}
@keyframes tbBlendBeam {
  0%, 30%  { opacity: 0; transform: scaleX(.3); }
  46%      { opacity: 1; transform: scaleX(1); }
  56%      { opacity: 0; transform: scaleX(.2); }
  74%      { opacity: 0; transform: scaleX(.2); }
  80%      { opacity: 1; transform: scaleX(1); }
  92%      { opacity: 0; transform: scaleX(.3); }
  100%     { opacity: 0; transform: scaleX(.3); }
}

/* ---- the talking heads (SVG face: outline + eyes + animated mouth) -------- */
.tb-face { width: 100%; height: 100%; display: block; overflow: visible; }
.tb-face-shape {
  fill: rgba(255, 255, 255, .035);
  stroke: currentColor; stroke-width: 3.2; stroke-linejoin: round;
}
.tb-face-eye {
  fill: currentColor;
  transform-box: fill-box; transform-origin: center;
  animation: tbBlink 5.2s ease-in-out infinite;
}
.tb-head-b .tb-face-eye { animation-delay: -2.4s; }
.tb-face-mouth {
  fill: currentColor;
  transform-box: fill-box; transform-origin: center;
  animation: tbTalk .46s ease-in-out infinite;
}
.tb-head-b .tb-face-mouth { animation-duration: .38s; animation-delay: -.12s; }
.tb-head-merged .tb-face-mouth { animation-duration: .52s; }

@keyframes tbTalk {
  0%, 100% { transform: scaleY(.35); }
  25%      { transform: scaleY(1); }
  50%      { transform: scaleY(.5); }
  75%      { transform: scaleY(.95); }
}
@keyframes tbBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(.12); }
}

/* neon glow pulse — the merged head glows in all three brand colours */
@keyframes tbGlowA {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 107, 53, .55)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255, 107, 53, .95)); }
}
@keyframes tbGlowB {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(53, 194, 255, .55)); }
  50%      { filter: drop-shadow(0 0 20px rgba(53, 194, 255, .95)); }
}
@keyframes tbGlowBlend {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 107, 53, .5)) drop-shadow(0 0 8px rgba(53, 194, 255, .5)) drop-shadow(0 0 10px rgba(53, 255, 158, .65)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255, 107, 53, .8)) drop-shadow(0 0 16px rgba(53, 194, 255, .8)) drop-shadow(0 0 24px rgba(53, 255, 158, 1)); }
}

/* ---- animated equalizer (matches wz-eq) ---------------------------------- */
.tb-blend-eq {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px; height: 40px; margin: 6px 0 2px;
}
.tb-blend-eq i {
  width: 4px; height: 40%; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: tbBlendEq 1.1s ease-in-out infinite;
}
@keyframes tbBlendEq { 0%, 100% { height: 16%; opacity: .45; } 50% { height: 100%; opacity: 1; } }

@media (max-width: 620px) {
  .tb-blend { --tb-spread: 60px; margin-bottom: 26px; }
  .tb-blend-inner { padding: 22px 16px 16px; }
  .tb-blend-eq { height: 32px; }
  .tb-blend-burst { width: 118px; height: 118px; margin: -59px 0 0 -59px; }
  .tb-blend-beam { width: 140px; margin-left: -70px; }
}

/* Respect reduced-motion: keep the final blended head, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .tb-blend, .tb-blend-grid, .tb-blend-glow, .tb-blend-scan, .tb-blend-edge,
  .tb-blend-dot, .tb-blend-eq i, .tb-blend-burst, .tb-blend-beam,
  .tb-head, .tb-head-inner, .tb-face-eye, .tb-face-mouth {
    animation: none !important;
  }
  .tb-head-a, .tb-head-b { opacity: 0; }
  .tb-head-merged { opacity: 1; transform: scale(1); }
  .tb-blend-burst { opacity: .35; }
}
