/* ============================================================
   Zallixor — programs.css
   Monetization centre, safety report centre, the gift quantity
   confirm bar, and the video gift ticker.
   ============================================================ */

/* ── Monetization centre ─────────────────────────────────── */
.page-programs { padding-bottom: 24px; }
.pg-followers { display: flex; align-items: baseline; gap: 6px; padding: 6px 2px 10px; }
.pg-followers strong { font-family: var(--font-display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }

.pg-card { padding: 12px; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
/* An unlocked programme reads as done at a glance, without needing the
   pill to be read. */
.pg-card.on { border-color: rgba(47,216,164,.4); background: rgba(47,216,164,.05); }
.pg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pg-card-head strong { display: block; font-size: .95rem; }

.pg-bar { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin: 10px 0 6px; }
.pg-bar-fill { height: 100%; border-radius: 999px; background: var(--grad); transition: width var(--dur-slow); }
.pg-card.on .pg-bar-fill { background: var(--ok); }
.pg-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pg-reason { font-size: .72rem; color: var(--danger); }
.pg-foot { padding-top: 14px; }

/* ── Safety centre ───────────────────────────────────────── */
.page-safety { padding-bottom: 24px; }
.page-safety .mk-reasons { margin-bottom: 6px; }

/* ── Gift quantity + confirm bar ─────────────────────────────
   Sits at the bottom of the picker sheet. Deliberately a separate,
   deliberate step: it is where quantity lives and where an expensive
   gift gets a second confirmation, so a mis-tap costs nothing. */
.gift-confirm { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.gsend-mid { flex: 1; min-width: 0; }
.gsend-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsend-total { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--amber); font-weight: 700;
  font-variant-numeric: tabular-nums; }
.gsend-total .icon { width: 13px; height: 13px; }
.gsend-step { display: flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px; flex: 0 0 auto; }
.gsend-step .icon-btn { width: 28px; height: 28px; font-size: 1rem; line-height: 1; }
.gsend-qty { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.gsend-go { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* ── Video gift ticker ───────────────────────────────────────
   Sender + gift name only. No coin figures on a public surface —
   what someone spent is between them and their wallet. */
.reel-gift-ticker { position: absolute; left: 12px; bottom: 148px; z-index: 3;
  display: grid; gap: 4px; pointer-events: none; max-width: 62%; }
.rgt-row { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px); border-radius: 999px;
  animation: rgt-in .3s ease-out both; }
.rgt-ico { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; }
.rgt-text { font-size: .72rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rgt-in { from { opacity: 0; transform: translateX(-12px) } to { opacity: 1; transform: none } }
/* Combo bump: plays each time a repeat send from the same person/gift
   increments the row's ×N instead of adding a new row underneath it. */
.rgt-row.rgt-bump { animation: rgt-bump .32s ease-out; }
@keyframes rgt-bump {
  0%   { transform: scale(1); background: rgba(0,0,0,.42); }
  35%  { transform: scale(1.12); background: rgba(124,92,255,.55); }
  100% { transform: scale(1); background: rgba(0,0,0,.42); }
}

@media (prefers-reduced-motion: reduce) {
  .rgt-row { animation-duration: .01ms !important; }
  .rgt-row.rgt-bump { animation-duration: .01ms !important; }
  .pg-bar-fill { transition: none; }
}

/* ── "Post as Zallixor AI" toggle (main admin only) ────────── */
.composer-asai { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .82rem; cursor: pointer; }
.composer-asai input { width: 17px; height: 17px; flex: 0 0 auto; }
.composer-asai-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.composer-asai:has(input:checked) { border-color: var(--accent-a); background: var(--accent-soft); }

/* ── Live tab (Cloudinary-backed — see js/live.js) ─────────── */
.live-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; text-align: left; width: 100%; cursor: pointer; }
.live-card-badge { position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 800;
  letter-spacing: .02em; color: var(--danger); background: rgba(255,93,115,.14); padding: 3px 8px; border-radius: 999px; }
.group-card-name { font-weight: 700; font-family: var(--font-display); }
.live-cred-row { display: flex; gap: 8px; align-items: center; }
.live-cred-row .field-input { flex: 1; min-width: 0; }
.live-viewer-overlay { align-items: stretch; padding: 0; }
.live-viewer { position: relative; width: 100%; height: 100%; background: #000;
  display: flex; flex-direction: column; justify-content: flex-end; }
.live-viewer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-viewer-close { position: absolute; top: calc(14px + var(--safe-top)); right: 14px; z-index: 2;
  background: rgba(0,0,0,.5); }
.live-viewer-meta { position: relative; z-index: 1; padding: 18px 16px calc(20px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff; font-weight: 700; }

/* ── Live tab (pre-launch, but real) ─────────────────────── */
.live-preview { padding: 4px 12px calc(24px + var(--safe-bottom)); overflow-y: auto; flex: 1; }
.live-hero { position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 28px 16px 22px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.live-hero-glow { position: absolute; inset: -40% -20% auto -20%; height: 160px; background: var(--aurora);
  pointer-events: none; }
.live-hero-ico { position: relative; color: var(--danger); }
.live-hero-ico .icon { width: 34px; height: 34px; }
.live-hero h2 { position: relative; margin: 0; font-family: var(--font-display); }
.live-hero p { position: relative; margin: 0; max-width: 34ch; }
.live-section { padding: 16px 2px 6px; }
.live-section h3 { margin: 0; font-size: .95rem; font-family: var(--font-display); }
.live-gift-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.live-gift-strip::-webkit-scrollbar { display: none; }
.live-gift-strip .gift-cell { flex: 0 0 84px; }
.live-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.mp-badge.open { background: rgba(47,216,164,.16); color: var(--ok); }
