.mpap-profile-page-wrap,
.mpap-profile-card,
.mpap-profile-form,
.mpap-member-directory,
.mpap-author-box {
    box-sizing: border-box;
}
.mpap-profile-page-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}
.mpap-profile-card {
    max-width: 840px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.mpap-profile-cover img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.mpap-profile-head {
    display: flex;
    gap: 20px;
    padding: 22px;
    align-items: flex-start;
}
.mpap-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.mpap-profile-main h2 { margin: 0 0 8px; }
.mpap-line { margin: 6px 0; color: #4b5563; }
.mpap-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    color: #374151;
}
.mpap-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mpap-btn {
    display: inline-block;
    border: 0;
    background: #111827;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}
.mpap-btn-light {
    background: #f3f4f6;
    color: #111827;
}
.mpap-bio { padding: 0 22px 22px; color: #374151; }
.mpap-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.mpap-badge {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.mpap-socials {
    padding: 0 22px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.mpap-profile-form {
    max-width: 840px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
}
.mpap-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.mpap-form-grid .mpap-full { grid-column: 1 / -1; }
.mpap-profile-form input[type="text"],
.mpap-profile-form input[type="url"],
.mpap-profile-form input[type="file"],
.mpap-profile-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-top: 6px;
}
.mpap-form-message { margin-top: 12px; color: #b91c1c; }
.mpap-form-message.is-success { color: #166534; }
.mpap-member-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.mpap-member-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}
.mpap-member-card .avatar { border-radius: 50%; margin-bottom: 10px; }
.mpap-directory-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.mpap-directory-search input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
}
.mpap-author-box {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}
.mpap-author-box .avatar { border-radius: 50%; }
.mpap-comment-card {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.mpap-comment-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
}
.mpap-comment-meta { font-size: 13px; color: #6b7280; }
@media (max-width: 700px) {
    .mpap-profile-head,
    .mpap-author-box { flex-direction: column; }
    .mpap-form-grid { grid-template-columns: 1fr; }
}
