/* ParlayDesk PRO marks shared by every app page (Billing polish,
   2026-11-18, docs/BILLING_TRIAL_20261118.md "Round 3"). Loaded by
   app.html, community.html, account.html and billing2.html. */
:root {
  /* The PRO gold (badges, PRO plan name, PRO locks) — the value every
     PRO surface already uses. */
  --pro-gold: #f5b400;
}

/* PRO lock (Billing polish, 2026-11-18): the one reusable mark for a
   PRO-gated feature — a thin outline padlock (Lucide-style geometry, round
   caps like the sport/section icons) drawn in the PRO gold. CSS mask over
   the gold, so it is crisp at any DPR, needs no icon font or emoji, and
   follows font-size. Decorative: pair it with visible or sr-only "PRO".
   Use: <span class="pd-pro-lock" aria-hidden="true"></span>
   Sizes: default 14px · --sm 12px (inside 10–11px PRO tags) · --lg 26px
   (locked-panel headers, thinner stroke so the weight matches).
   Not for ordinary security/privacy locks. */
.pd-pro-lock {
  --pd-lock-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  display: inline-block; flex: none;
  width: var(--pd-lock-size, 14px); height: var(--pd-lock-size, 14px);
  vertical-align: -0.16em;
  background-color: var(--pro-gold, #f5b400);
  -webkit-mask: var(--pd-lock-mask) center / contain no-repeat;
          mask: var(--pd-lock-mask) center / contain no-repeat;
}
.pd-pro-lock--sm { --pd-lock-size: 12px; vertical-align: -0.12em; }
.pd-pro-lock--lg {
  --pd-lock-size: 26px;
  --pd-lock-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
@media (forced-colors: active) {
  .pd-pro-lock { forced-color-adjust: none; background-color: CanvasText; }
}

/* Trial-aware CTA while the offer is unresolved (pd-pro-offer.js, 2026-11-18):
   the label is never painted until it is known to be right. The element keeps
   its place and its size (sized for the trial wording); a quiet shimmer
   stands in for the text. */
[data-pro-cta][data-pro-cta-pending] { color: transparent !important; position: relative; pointer-events: none; text-shadow: none !important; }
[data-pro-cta][data-pro-cta-pending] > * { visibility: hidden; }
[data-pro-cta][data-pro-cta-pending]::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 50%; height: .8em; margin-top: -.4em; border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .22), rgba(148, 163, 184, .38), rgba(148, 163, 184, .22));
  background-size: 200% 100%; animation: pd-cta-shimmer 1.2s ease-in-out infinite;
}
@keyframes pd-cta-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { [data-pro-cta][data-pro-cta-pending]::after { animation: none; } }

/* v2.2.3: the disclosure under a signed-out PRO trial offer (plan-level,
   shown only while the plan has a trial; /pd-pro-offer.js plan()). */
.pd-trial-fine { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #94a3b8; max-width: 60ch; }
.pd-trial-fine[hidden] { display: none !important; }
