/* ──────────────────────────────────────────────────────────────────
 * POP SHOW — Componentes próprios (Fase 1.2)
 * Depende de: cf-base.css → theme.css → cf-components.css
 * Adiciona o que não existe no ClubeFII: Badge de tier, PaywallCard,
 * Avatar, Skeleton + CTA gradiente assinatura.
 * ──────────────────────────────────────────────────────────────── */

/* ═══ CTA gradiente assinatura (conversão / upgrade) ═══ */
.cf-btn--gradient {
  background: var(--ps-gradient);
  color: #fff;
  border: 0;
  position: relative;
  box-shadow: none;
}
.cf-btn--gradient:hover { filter: brightness(1.06); }
.cf-btn--gradient:active { filter: brightness(.97); }

/* ═══ Badge de tier ═══ */
.ps-tier {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px;
  border-radius: var(--cf-radius-full);
  font-family: var(--ps-font-sans);
  font-size: 12px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
}
.ps-tier i { font-size: 14px; }
.ps-tier--sm { height: 22px; padding: 0 9px; font-size: 11px; }
.ps-tier--sm i { font-size: 12px; }

.ps-tier--free {
  background: color-mix(in srgb, var(--neutral-500) 18%, transparent);
  color: var(--neutral-400); border-color: color-mix(in srgb, var(--neutral-500) 32%, transparent);
}
.ps-tier--gestao {
  background: color-mix(in srgb, var(--blue-500) 16%, transparent);
  color: var(--blue-400); border-color: color-mix(in srgb, var(--blue-500) 36%, transparent);
}
.ps-tier--carteira {
  background: color-mix(in srgb, var(--brand-500) 18%, transparent);
  color: var(--brand-400); border-color: color-mix(in srgb, var(--brand-500) 40%, transparent);
}
.ps-tier--b3 {
  background: var(--brand-500); color: #fff;
  border-color: transparent;
}
/* light theme legibility for text-on-tint tiers */
:root.light .ps-tier--gestao,
:root[data-theme="light"] .ps-tier--gestao { color: var(--blue-600); }
:root.light .ps-tier--carteira,
:root[data-theme="light"] .ps-tier--carteira { color: var(--brand-600); }
:root.light .ps-tier--free,
:root[data-theme="light"] .ps-tier--free { color: var(--neutral-600); }

/* ═══ Avatar ═══ */
.ps-avatar {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  border-radius: var(--cf-radius-full);
  overflow: visible;
  font-family: var(--ps-font-display); font-weight: 700;
  color: var(--brand-400); background: var(--cf-accent-tint);
  user-select: none;
}
.ps-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.ps-avatar--xs { width: 28px; height: 28px; font-size: 11px; }
.ps-avatar--sm { width: 36px; height: 36px; font-size: 13px; }
.ps-avatar--md { width: 44px; height: 44px; font-size: 15px; }
.ps-avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.ps-avatar--xl { width: 80px; height: 80px; font-size: 27px; }
.ps-avatar--ring { box-shadow: 0 0 0 2px var(--cf-bg-card), 0 0 0 4px var(--brand-500); }

/* selo (moderador / embaixador / influenciador verificado) */
.ps-avatar__seal {
  position: absolute; right: -2px; bottom: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; color: #fff;
  border: 2px solid var(--cf-bg-card);
}
.ps-avatar--lg .ps-avatar__seal, .ps-avatar--xl .ps-avatar__seal { width: 22px; height: 22px; font-size: 13px; }
.ps-seal--mod   { background: var(--blue-500); }       /* moderador */
.ps-seal--amb   { background: var(--orange-500); }     /* embaixador */
.ps-seal--verif { background: var(--brand-500); }      /* influenciador verificado */

/* ═══ Skeleton ═══ */
@keyframes ps-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.ps-skeleton {
  display: block; border-radius: var(--cf-radius-sm);
  background: linear-gradient(100deg,
    var(--cf-bg-input) 30%,
    color-mix(in srgb, var(--cf-fg-3) 16%, var(--cf-bg-input)) 50%,
    var(--cf-bg-input) 70%);
  background-size: 200% 100%;
  animation: ps-shimmer 1.4s var(--cf-ease-standard) infinite;
}
.ps-skeleton--line { height: 12px; border-radius: var(--cf-radius-full); }
.ps-skeleton--title { height: 20px; border-radius: var(--cf-radius-sm); }
.ps-skeleton--block { height: 100%; border-radius: var(--cf-radius-md); }
.ps-skeleton--circle { border-radius: 50%; aspect-ratio: 1; }
@media (prefers-reduced-motion: reduce) { .ps-skeleton { animation: none; } }

/* ═══ PaywallCard ═══ */
.ps-paywall {
  position: relative;
  background: var(--cf-bg-card);
  border: 1px solid color-mix(in srgb, var(--brand-500) 32%, var(--cf-border));
  border-radius: var(--cf-radius-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}
.ps-paywall::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--ps-gradient);
}
.ps-paywall__head { display: flex; align-items: center; gap: 12px; }
.ps-paywall__lock {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--cf-accent-tint); color: var(--brand-400);
}
.ps-paywall__feature { font-family: var(--ps-font-display); font-weight: 700; font-size: 17px; color: var(--cf-fg-1); }
.ps-paywall__sub { font-size: 13px; color: var(--cf-fg-3); margin-top: 2px; }
.ps-paywall__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ps-paywall__benefits li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--cf-fg-2); }
.ps-paywall__benefits i { color: var(--success-500); font-size: 16px; flex: none; }
.ps-paywall__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.ps-paywall__price { display: flex; align-items: baseline; gap: 4px; }
.ps-paywall__price .amount { font-family: var(--ps-font-display); font-weight: 800; font-size: 26px; color: var(--cf-fg-1); }
.ps-paywall__price .per { font-size: 13px; color: var(--cf-fg-3); }

/* Lock overlay sobre conteúdo bloqueado (feature visível, mas borrada) */
.ps-lock-wrap { position: relative; border-radius: var(--cf-radius-xl); overflow: hidden; }
.ps-lock-wrap__blur { filter: blur(5px) saturate(.6); opacity: .55; pointer-events: none; user-select: none; }
.ps-lock-wrap__veil {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--cf-bg-page) 55%, transparent);
  backdrop-filter: blur(1px);
}
