/* Shared dialog chrome for the platform money UI (PayPalCheckout + AccountPanel).
   Extracted from hair style.css (P5 fix): landing & nails built the DOM but had
   no styles => invisible dialogs. ONE source; hair links this file too.

   Token bridge: this file speaks HAIR token names (--border/--ink); landing &
   nails define only the nail-palette names. Undefined var() silently voids
   whole shorthands (the .ppPack border-collapse bug), so the names are
   declared here with the same plum values. Hair's own :root (loaded after)
   re-declares them identically - no drift. */
:root { --border: #3a2f4d; --ink: #f2eef8; }
/* buy-credits dialog (paypalUi.js PayPalCheckout builds this DOM on demand) */
.ppBackdrop { position: fixed; inset: 0; z-index: 70; padding: 16px;
  background: rgba(10, 12, 16, .72);
  display: flex; align-items: center; justify-content: center; }
.ppDialog { background: var(--panel); color: var(--ink); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; width: min(420px, 100%); max-height: 92vh; overflow: auto; }
.ppHead { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.ppX { background: none; border: none; font-size: 16px; color: inherit; padding: 4px 8px; }
.ppSub { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.ppPacks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ppPack { border: 2px solid var(--border); border-radius: 10px; padding: 10px 8px;
  text-align: center; cursor: pointer; user-select: none; }
.ppPack.sel { border-color: var(--accent); background: rgba(224, 92, 151, .06); }
.ppPack .credits { font-size: 17px; font-weight: 700; }
.ppPack .was { text-decoration: line-through; color: var(--muted); font-size: 12px; }
.ppPack .price { font-weight: 600; margin-top: 2px; }
.ppPack .promo { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; }
.ppButtons { min-height: 44px; }
.ppLogin { text-align: center; font-size: 14px; padding: 8px 0; }
.ppLogin a { color: var(--accent); font-weight: 600; }
.ppErr { color: #dc2626; font-size: 13px; margin-top: 8px; text-align: center; }
/* waiting + error states of the capture round-trip (paypalUi.js) */
.ppWait { text-align: center; padding: 26px 0; font-weight: 600; }
.ppSpin { width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid rgba(224, 92, 151, .25); border-top-color: var(--accent);
  animation: spin .9s linear infinite; }
.ppErrBig { text-align: center; color: #dc2626; font-weight: 600; margin: 12px 0 6px; }
.ppErrActions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.ppSecondary { background: var(--panel); border: 1px solid var(--border); color: var(--ink); font-weight: 600; padding: 10px 22px; }
/* success state after a purchase (PayPalCheckout.showSuccess) */
.ppCheck { width: 56px; height: 56px; border-radius: 50%; background: #16a34a;
  display: flex; align-items: center; justify-content: center; margin: 8px auto 14px; }
.ppCheck svg { width: 30px; height: 30px; display: block; }
/* warning variant: "you're out of credits" (paypalUi.js showOutOfCredits) */
.ppCheckWarn { background: #d97706; color: #fff; font-weight: 800; font-size: 28px; line-height: 1; }
.ppDone { text-align: center; font-size: 17px; font-weight: 600; }
.ppBal { text-align: center; color: var(--muted); font-size: 13px; margin: 5px 0 16px; }
.ppContinue { display: block; margin: 0 auto; background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600; padding: 10px 28px; }
/* AccountPanel ("My data") - sections + the destructive button */
.acctSec { margin: 0 0 12px; }
.acctSec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 0 0 4px; }
.acctSec p { margin: 4px 0; font-size: 14px; }
.acctSec ul { margin: 4px 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.ppDialog .danger { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 600; }
@media (hover: hover) {
.ppDialog .danger:hover:not(:disabled) { background: #b91c1c; }
}
.pkCard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 14px 12px; width: min(360px, 100%); }
/* confirm modal */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(10, 12, 16, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modalCard { background: var(--panel); color: var(--ink); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; max-width: 340px; width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.modalCard p { margin: 0 0 16px; font-weight: 600; }
.modalCard .danger { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 600; }
