/* Tips and creator subscriptions (Shell\SupportDialog, Settings → Tips and subscriptions / Subscriptions,
   subscriber-only locked content). Readable ≥ 12px; fits by layout, never by shrinking. */

/* Locked content: a calm panel in place of the media (posts, the post window, stories). */
.locked-post { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px 20px; text-align: center;
  width: 100%; height: 100%; background: var(--bg-raised); color: var(--text-primary); }
.locked-post .locked-icon, .sv-locked .locked-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--brand-500, var(--text-primary)); }
.locked-title { font-size: var(--type-body-strong-size); font-weight: 600; }
.locked-text { font-size: var(--type-meta-size); color: var(--text-secondary); max-width: 32ch; }
.locked-post .btn { margin-top: 4px; }
.post-card .post-media.is-locked { display: grid; }
.pw-media.is-locked { display: grid; min-height: 360px; background: var(--bg-raised); }
.pw-media.is-locked .locked-post { min-height: 360px; }
.sv-locked { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px;
  text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #2a2f3a, #0b0d12); }
.sv-locked .locked-text { color: rgba(255, 255, 255, 0.78); }
.sv-locked .locked-icon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* Grid: lock tile, and the small badge on subscriber-only posts you can see. */
.tile-frame.tile-locked { display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--bg-raised); color: var(--text-secondary); }
.tile-locked-text { font-size: var(--type-meta-size); font-weight: 600; }
.tile-collab.tile-subs { background: rgba(0, 0, 0, 0.55); }

/* Comments: subscriber star after the name. */
.cmt-sub { display: inline-flex; align-items: center; color: var(--accent-flash); }
.cmt-sub .icon { width: 12px; height: 12px; }

/* Profile: Subscribe button. */
.profile-subscribe { gap: 6px; white-space: nowrap; }
.profile-subscribe .icon { flex: none; }

/* Live: tip button next to the heart. */
.lv-tip-btn { margin-inline-end: 4px; }

/* Dialog. */
.support-dialog .dialog-body { overflow-y: auto; }
.support-who { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.support-who-text { display: grid; gap: 2px; min-width: 0; }
.support-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.support-chip { min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle);
  background: var(--bg-surface); color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.support-chip:hover { background: var(--bg-hover); }
.support-chip.is-on { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }
.support-amount { display: flex; align-items: center; gap: 8px; }
.support-amount .input { flex: 1; min-width: 0; }
.support-prefix { font-weight: 600; color: var(--text-secondary); }
.support-price { display: flex; align-items: baseline; gap: 8px; }
.support-price-amount { font-size: var(--type-title-lg-size); font-weight: 700; }
.support-benefits { white-space: pre-line; }
.support-terms { display: grid; gap: 6px; }
.support-terms li { display: flex; align-items: flex-start; gap: 8px; }
.support-terms .icon { flex: none; margin-top: 2px; }

/* Settings. */
.set-card-title { padding: 16px 20px 4px; font-size: var(--type-body-strong-size); font-weight: 600; }
.support-form { padding: 0 20px 20px; }
.support-form .set-row { padding-inline: 0; }
.support-form > .btn { justify-self: start; }
.support-empty { padding: 4px 20px 16px; }
.support-list .set-row { gap: 12px; }
.support-list .set-row-text { min-width: 0; }
.earn-money-card .earn-points { font-size: var(--type-title-lg-size); }

/* Phones: the profile buttons are a 4-column grid; Subscribe takes its own full row under them and the tip
   icon moves into the ⋯ options menu (it's there as "Send tip"). */
@media (max-width: 767px) {
  .profile-actions .profile-subscribe { grid-column: 1 / -1; order: 10; }
  .profile-actions .profile-tip-btn { display: none; }
}
