.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.pp-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.pp-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 680px);
  overflow-y: auto;
  background: #0d131d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: flex;
}
.pp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  width: 100%;
}
.pp-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: #00ca63;
  border-radius: 50%;
  animation: ppSpin 0.7s linear infinite;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }

/* LEFT SIDEBAR */
.pp-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: #0a1018;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pp-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(135deg, #00ca63, #22c55e);
  margin-bottom: 12px;
}
.pp-avatar {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: #1a2332;
  display: block;
}
.pp-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
}
.pp-joined {
  margin: 0 0 12px;
  font-size: 11px;
  color: #64748b;
}
.pp-level-bar {
  width: 100%;
  margin-bottom: 16px;
}
.pp-level-info {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
}
.pp-level-progress {
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}
.pp-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ca63, #22c55e);
  border-radius: 2px;
}
.pp-mute-btn {
  margin-top: auto;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
}
.pp-mute-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* RIGHT CONTENT */
.pp-content {
  flex: 1;
  padding: 24px 20px 20px;
  min-width: 0;
}
.pp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pp-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #94a3b8;
}
.pp-tab.active {
  background: #fbbf24;
  color: #111;
}
.pp-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pp-section-title i { color: #fbbf24; }
.pp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.pp-stat {
  text-align: center;
  background: #141c28;
  border-radius: 12px;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.pp-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
}
.pp-stat-val.pp-gold {
  color: #fbbf24;
}
.pp-stat-label {
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}
.pp-activity-head {
  display: grid;
  grid-template-columns: 1fr 80px 70px;
  gap: 8px;
  padding: 0 4px 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.pp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.pp-activity-row {
  display: grid;
  grid-template-columns: 1fr 80px 70px;
  gap: 8px;
  align-items: center;
  background: #141c28;
  border-radius: 10px;
  padding: 10px 12px;
}
.pp-act-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pp-act-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 202, 99, 0.15);
  color: #00ca63;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pp-act-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-act-type { font-size: 11px; color: #64748b; }
.pp-act-time { font-size: 12px; color: #94a3b8; text-align: center; }
.pp-act-reward {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  text-align: right;
}
.pp-empty {
  text-align: center;
  padding: 24px 12px;
  color: #64748b;
  font-size: 13px;
}

/* MOBILE */
@media (max-width: 576px) {
  .pp-modal {
    flex-direction: column;
    width: 100%;
  }
  .pp-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .pp-avatar-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    margin-right: 12px;
  }
  .pp-level-bar {
    width: auto;
    flex: 1;
  }
  .pp-mute-btn {
    margin-top: 0;
    width: auto;
    margin-left: auto;
  }
}