/* ═══════════════════════════════════════════════════════════════
   AKO 🎭 — profile
   Mobile: stacked identity → vault → referral → resibo → extras → ALIS.
   Desktop: spread — identity + vault (left page) / resibo + extras (right page).
   ═══════════════════════════════════════════════════════════════ */

/* ── identity ── */
.pf-identity { overflow: hidden; }
.pf-headshot {
  position: relative;
  width: 84px; height: 84px; flex: 0 0 84px;
  border: var(--border-ink); border-radius: 16px;
  background-color: var(--paper-sunk);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 50px; line-height: 1;
  box-shadow: var(--shadow-hard);
  transform: rotate(-3deg);
}
.pf-headshot::after {
  content: ''; position: absolute; inset: 4px;
  border: 2px dashed rgba(26, 23, 18, 0.22); border-radius: 11px;
}
.pf-name { font-size: 30px; overflow-wrap: anywhere; }
.pf-email { margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
.pf-stamp {
  display: inline-block; margin-top: 7px;
  font-family: var(--f-display); font-size: 12px; letter-spacing: 0.08em;
  color: var(--danger-ink); border: 2px solid var(--danger-ink); border-radius: 6px;
  padding: 1px 8px; transform: rotate(-4deg);
  background: rgba(255, 77, 109, 0.08);
}

/* ── credit vault ── */
.pf-vault { text-align: center; }
.pf-vault-inky { margin-left: auto; }
.pf-vault-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 2px; }
.pf-coin {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #FFE08A, var(--credit-gold) 55%, var(--credit-gold-deep));
  border: 2.5px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 19px;
  box-shadow: 2px 2px 0 var(--panel-shadow);
}
.pf-balance { font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pf-vault-label {
  font-family: var(--f-head); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--newsprint-mute); margin-top: 4px;
}

/* ── referral ticket ── */
.pf-code {
  font-size: 22px; font-weight: 700; letter-spacing: 0.14em; text-align: center;
  background: var(--paper-sunk);
  border: 2px dashed var(--ink-line); border-radius: 10px;
  padding: 9px 12px; overflow-wrap: anywhere;
}
.pf-copy::after { display: none; }
.pf-ref .muted.small { margin-top: 8px; }

/* ── resibo (receipt ledger) ── */
.pf-ledger {
  display: flex; flex-direction: column;
  background: var(--speech-fill);
  border: 2px solid var(--ink-line); border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}
.pf-ledger-skel { min-height: 90px; border: none; border-radius: 8px; }
.pf-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dashed rgba(26, 23, 18, 0.16);
}
.pf-row:last-child { border-bottom: none; }
.pf-row-reason { font-family: var(--f-head); font-weight: 600; font-size: 14px; }
.pf-row-date { font-size: 10px; color: var(--newsprint-mute); margin-top: 1px; }
.pf-delta { flex: 0 0 auto; font-weight: 700; font-size: 16px; }
.pf-delta.is-plus { color: var(--success-ink); }
.pf-delta.is-minus { color: var(--danger-ink); }
.pf-more { padding-top: 8px; }

/* ── soon cards ── */
.pf-soon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-soon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; min-height: 96px; cursor: pointer; font: inherit;
}
.pf-soon-emoji { font-size: 30px; }
.pf-soon-label { font-family: var(--f-head); font-weight: 700; font-size: 13px; color: var(--ink-soft); }

/* ── admin key card ── */
.pf-admin { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 12px; }
.pf-admin-key { font-size: 28px; }
.pf-admin strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; }

/* ── ALIS (logout) ── */
.pf-alis { background: var(--danger); margin-top: 4px; }

/* ── mobile: gap between the two stacked "pages" ── */
@media (max-width: 1023.98px) {
  .pf-right { margin-top: 14px; }
}

/* ═══ DESKTOP ≥1024px — two-page spread ═══ */
@media (min-width: 1024px) {
  .pf-headshot { width: 96px; height: 96px; flex-basis: 96px; font-size: 58px; }
  .pf-balance { font-size: 64px; }
  .pf-coin { width: 52px; height: 52px; font-size: 21px; }
  .pf-alis { max-width: 260px; align-self: flex-end; }
}
