/* =====================================================
   ליכודלינק — PROFILE (private personal area)
   ===================================================== */
.prof-wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; }

/* hero */
.pf-hero {
  display: flex; align-items: center; gap: 16px;
  background: var(--grad-brand); color: #fff;
  border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--glow-blue);
}
.pf-av {
  flex: none; position: relative; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55); background: rgba(255,255,255,.16);
  cursor: pointer; padding: 0; display: grid; place-items: center;
  transition: transform .15s ease;
}
.pf-av:hover { transform: scale(1.04); }
.pf-av-face { font-size: 40px; line-height: 1; }
.pf-av:not(.has-emoji) .pf-av-face { font-weight: 800; font-size: 38px; color: #fff; }
.pf-av-edit {
  position: absolute; inset-block-end: -2px; inset-inline-end: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy-600);
  display: grid; place-items: center; box-shadow: var(--sh-1);
}
.pf-av-edit svg { width: 15px; height: 15px; }
.pf-id { min-width: 0; }
.pf-name { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.pf-tier { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.pf-tier-chip {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  padding: 3px 11px; border-radius: 999px; font-weight: 700; font-size: .86rem;
}
.pf-meta { opacity: .9; font-size: .9rem; }
.pf-since { opacity: .82; font-size: .8rem; margin-top: 6px; }

/* level progress */
.pf-levelcard { background: var(--bg-elev); border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--sh-1); margin-top: 14px; }
.pf-lc-top { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 700; color: var(--mist); margin-bottom: 9px; }

/* stats grid — 4 stats: 2×2 on phones, one clean row on wider screens
   (repeat(3) left an orphan card with two empty cells on the 2nd row) */
.pf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .pf-stats { grid-template-columns: repeat(4, 1fr); } }
.pf-stat { background: var(--bg-elev); border-radius: var(--r-md); padding: 15px 8px; text-align: center; box-shadow: var(--sh-1); }
.pf-stat-ico { color: var(--navy-600); margin-bottom: 4px; }
.pf-stat-ico svg { width: 22px; height: 22px; }
.pf-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.pf-stat-lbl { font-size: .78rem; color: var(--faint); margin-top: 2px; }

/* action buttons */
.pf-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pf-btn {
  flex: 1; min-width: 140px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: .92rem; cursor: pointer;
  background: var(--bg-elev); color: var(--mist); border: 1px solid var(--line-2);
}
.pf-btn svg { width: 17px; height: 17px; }
.pf-btn.primary { background: var(--grad-brand); color: #fff; border: 0; box-shadow: var(--glow-blue); }
.pf-btn.danger { color: var(--red); }
.pf-btn:hover { filter: brightness(.98); }

/* sections + lists */
.pf-section { background: var(--bg-elev); border-radius: var(--r-md); padding: 16px 17px; box-shadow: var(--sh-1); margin-top: 14px; }
.pf-sec-title { font-weight: 800; color: var(--white); margin-bottom: 10px; }
.pf-list { display: flex; flex-direction: column; }
.pf-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pf-item:last-child { border-bottom: 0; }
.pf-item-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--navy-600); display: grid; place-items: center; }
.pf-item-ico svg { width: 16px; height: 16px; }
.pf-item-t { flex: 1; font-weight: 600; color: var(--mist); font-size: .92rem; }
.pf-item-time { color: var(--faint); font-size: .78rem; }
.pf-empty { color: var(--faint); font-size: .88rem; padding: 6px 0; }

/* details */
.pf-details { margin-bottom: 12px; }
.pf-drow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pf-drow:last-child { border-bottom: 0; }
.pf-dk { color: var(--faint); font-size: .86rem; }
.pf-dv { font-weight: 700; color: var(--white); font-size: .9rem; }

/* avatar picker modal */
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.av-opt {
  aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--line-2); background: var(--glass-hover);
  font-size: 30px; cursor: pointer; display: grid; place-items: center; transition: transform .12s ease;
}
.av-opt:hover { transform: scale(1.06); }
.av-opt.sel { border-color: var(--navy-600); box-shadow: var(--glow-blue); background: var(--fill); }
.av-opt.av-none { font-size: .9rem; font-weight: 700; color: var(--faint); }
.pf-edit-form .form-row { margin-bottom: 10px; }

/* liked posts */
.pf-liked { display: flex; flex-direction: column; gap: 10px; }
.pf-liked-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: background .12s ease; }
.pf-liked-item:hover { background: var(--glass-hover); }
.pli-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--fill); }
.pli-ico { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--fill); color: var(--navy-600); display: grid; place-items: center; }
.pli-ico svg { width: 22px; height: 22px; }
.pli-body { flex: 1; min-width: 0; }
.pli-text { display: block; color: var(--mist); font-weight: 600; font-size: .9rem; line-height: 1.4; }
.pli-date { display: block; color: var(--faint); font-size: .75rem; margin-top: 2px; }
.pli-heart { flex: none; color: var(--like); }
.pli-heart svg { width: 18px; height: 18px; }

/* header chip: emoji avatar sits a touch larger than an initial */
#uc-initial.has-emoji { font-size: 1.05rem; line-height: 1; }

@media (max-width: 480px) {
  .pf-stat-num { font-size: 1.28rem; }
  .av-grid { grid-template-columns: repeat(3, 1fr); }
}
