/* ============================================================
   PROFILE CARD - Modal de perfil
   ============================================================ */
.profile-modal { position: relative; padding: 24px !important; max-width: 560px !important; }
.pc-close-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: 16px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; z-index: 2;
}
.pc-close-x:hover { background: rgba(255,85,102,0.15); color: var(--red); border-color: var(--red); }
.pc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pc-avatar-wrap { position: relative; flex-shrink: 0; }
.pc-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 2px solid var(--border);
}
.pc-online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--bg-1);
}
.pc-online-dot.online  { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pc-online-dot.offline { background: #555; }
.pc-header-info { flex: 1; min-width: 0; }
.pc-username { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 6px; word-break: break-word; }
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc-role-badge, .pc-rank-badge, .pc-vip-badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 10px; border: 1px solid;
  letter-spacing: 0.3px; white-space: nowrap;
}
.pc-role-badge { border-color: currentColor; }
.pc-rank-badge { background: rgba(0,0,0,0.2); }
.pc-vip-badge { background: rgba(255,204,68,0.15); color: var(--gold); border-color: rgba(255,204,68,0.5); }
.pc-bio {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  padding: 10px 14px; background: rgba(0,0,0,0.2);
  border-radius: 10px; margin-bottom: 16px; font-style: italic;
}
.pc-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.pc-stat {
  background: rgba(0,0,0,0.2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 8px; text-align: center;
}
.pc-stat-icon { font-size: 16px; line-height: 1; margin-bottom: 4px; }
.pc-stat-num { font-size: 18px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pc-stat-lbl { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; font-weight: 700; }
.pc-section-title { font-size: 12px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin: 16px 0 8px; font-weight: 800; }
.pc-matches { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; padding-right: 4px; }
.pc-matches::-webkit-scrollbar { width: 5px; }
.pc-matches::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.pc-match {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(0,0,0,0.15);
  border: 1px solid var(--border); border-left-width: 3px; border-radius: 8px;
}
.pc-match-icon { font-size: 16px; flex-shrink: 0; }
.pc-match-info { flex: 1; min-width: 0; }
.pc-match-title { font-size: 12px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-match-meta { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.pc-match-result { font-size: 11px; font-weight: 800; text-align: right; flex-shrink: 0; }
.pc-match-elo { font-size: 9px; opacity: 0.85; font-weight: 700; margin-top: 1px; }
.pc-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 12px 0 0; margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-dim);
}
.pc-meta-item { white-space: nowrap; }
.pc-actions {
  display: flex; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.pc-actions .btn { flex: 1; min-width: 120px; }
[data-user-id] { cursor: pointer; transition: opacity .15s; }
[data-user-id]:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .profile-modal { padding: 20px 16px !important; }
  .pc-avatar { width: 60px; height: 60px; }
  .pc-username { font-size: 17px; }
  .pc-stat-num { font-size: 16px; }
  .pc-stat-lbl { font-size: 8px; }
}
