/* ═══════════════════════════════════════
   MI PERFIL — 1280px sin capa oscura
   ═══════════════════════════════════════ */

:root {
    --mp-card: rgba(42, 71, 94, 0.92);
    --mp-card-hover: rgba(59, 110, 143, 0.9);
    --mp-header: rgba(23, 26, 33, 0.95);
    --mp-text: #c7d5e0;
    --mp-muted: #8f98a0;
    --mp-link: #67c1f5;
    --mp-accent: #e74c3c;
    --mp-accent-hover: #c0392b;
    --mp-online: #57cbde;
    --mp-border: rgba(255, 255, 255, 0.08);
    --mp-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    --mp-title-color: #a0b0c0;
}

/* Sin fondo global — el fondo de Liga WOC es visible */
body.page-style-my-profile {
    background: none !important;
}

.mp-page-shell {
    position: relative;
    min-height: calc(100vh - 76px);
    isolation: isolate;
}

.mp-page-bg-edit-btn {
    position: relative;
    min-width: 172px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
    border: 1px solid rgba(103, 193, 245, 0.34);
    background: linear-gradient(180deg, rgba(9, 15, 25, 0.96) 0%, rgba(13, 21, 35, 0.98) 100%);
    color: #86d8ff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(134, 216, 255, 0.08) inset;
    cursor: pointer;
    z-index: 3;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: left;
}

.mp-page-bg-edit-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(103, 193, 245, 0.7);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), 0 0 22px rgba(103, 193, 245, 0.18);
}

.mp-page-bg-edit-btn.is-active {
    border-color: rgba(103, 193, 245, 0.82);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), 0 0 24px rgba(103, 193, 245, 0.2);
}

.mp-page-bg-edit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(103, 193, 245, 0.1) 0%, rgba(103, 193, 245, 0) 58%);
    pointer-events: none;
}

.mp-page-bg-edit-thumb {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(143, 221, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.mp-page-bg-edit-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 46%, rgba(7, 12, 20, 0.32) 100%);
}

.mp-page-bg-edit-copy {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.mp-page-bg-edit-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1fbff;
    line-height: 1.1;
}

.mp-page-bg-edit-state {
    font-size: 0.68rem;
    color: rgba(170, 217, 237, 0.84);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-page-bg-edit-icon {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(103, 193, 245, 0.12);
    border: 1px solid rgba(103, 193, 245, 0.18);
}

.mp-page-bg-edit-btn i {
    font-size: 1.05rem;
}

.mp-page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(180deg, rgba(8, 12, 20, 0.35) 0%, rgba(7, 11, 18, 0.25) 50%, rgba(6, 10, 17, 0.35) 100%),
        var(--mp-page-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    pointer-events: none;
}

.mp-container {
    max-width: 1280px;
    width: 92%;
    margin: 0 auto;
    padding: 24px 0;
}

/* ═══ GRID: contenido expandido + sidebar 320px fija ═══ */
.mp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.mp-main,
.mp-sidebar {
    min-width: 0;
}

/* ═══ HEADER ═══ */
.mp-header {
    position: relative;
    background: #121a26;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
    min-height: 300px;
}

.mp-banner-wrap {
    position: relative;
    min-height: 300px;
}

.mp-banner-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 13, 21, 0.08) 0%, rgba(8, 13, 21, 0.12) 38%, rgba(9, 14, 22, 0.72) 78%, rgba(9, 14, 22, 0.96) 100%),
        linear-gradient(90deg, rgba(5, 10, 18, 0.38) 0%, rgba(5, 10, 18, 0.08) 28%, rgba(5, 10, 18, 0.08) 72%, rgba(5, 10, 18, 0.42) 100%);
    pointer-events: none;
}

.mp-banner-wrap:hover .mp-banner-edit-btn {
    opacity: 1;
    background: rgba(0,0,0,0.75);
}

.mp-banner-edit-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.mp-banner-edit-btn:hover {
    background: rgba(0,0,0,0.9) !important;
    opacity: 1 !important;
}

.mp-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.mp-header-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 40px 28px;
    display: flex;
    align-items: flex-end;
    gap: 28px;
    min-height: 124px;
    background: linear-gradient(180deg, rgba(11, 17, 27, 0) 0%, rgba(11, 17, 27, 0.34) 36%, rgba(11, 17, 27, 0.88) 100%);
    z-index: 1;
}

.mp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(111, 225, 255, 0.38), rgba(67, 115, 255, 0.2) 35%, rgba(255, 88, 88, 0.2) 100%);
    box-shadow: 0 18px 36px rgba(3, 8, 16, 0.5);
}

.mp-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(115, 239, 255, 0.95), rgba(99, 165, 255, 0.72) 45%, rgba(255, 124, 92, 0.92));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
    pointer-events: none;
}

.mp-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.mp-avatar {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(16, 25, 40, 0.92);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
    background: #152131;
    display: block;
}

.mp-avatar-ph {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(27, 43, 63, 0.98), rgba(16, 25, 40, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--mp-text);
    border: 3px solid rgba(16, 25, 40, 0.92);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

.mp-info {
    flex: 1;
    padding-bottom: 6px;
    z-index: 2;
    min-width: 0;
}

.mp-username {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-shadow: 0 3px 12px rgba(0,0,0,0.58);
    overflow-wrap: anywhere;
}

.mp-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--mp-muted);
}

.mp-status--online { color: var(--mp-online); }
.mp-status--online .mp-status-dot { background: var(--mp-online); box-shadow: 0 0 8px var(--mp-online); }

.mp-status--offline { color: var(--mp-muted); }
.mp-status--offline .mp-status-dot { background: var(--mp-muted); }

.mp-status--banned { color: #e74c3c; }
.mp-status--banned .mp-status-dot { background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }

.mp-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mp-muted);
    flex-shrink: 0;
}

.mp-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    z-index: 2;
}

.mp-level-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(17, 24, 37, 0.82);
    border: 2px solid rgba(255, 88, 88, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6f61;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.mp-edit-btn {
    padding: 12px 28px;
    background: rgba(76, 93, 118, 0.94);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-edit-btn:hover {
    background: var(--mp-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

/* ═══ SECTIONS ═══ */
.mp-section {
    background: var(--mp-card);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
}

.mp-section:last-child {
    margin-bottom: 0;
}

.mp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    border-bottom: 1px solid var(--mp-border);
    padding-bottom: 12px;
}

.mp-activity-subtitle {
    font-size: 0.88rem;
    color: var(--mp-muted);
    margin-bottom: 18px;
}

.mp-activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mp-activity-item {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    transition: background 0.2s;
}

.mp-activity-item:hover {
    background: var(--mp-card-hover);
}

.mp-activity-img {
    width: 160px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-activity-info {
    flex: 1;
    min-width: 0;
}

.mp-activity-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mp-link);
    margin-bottom: 8px;
}

.mp-activity-details {
    font-size: 0.85rem;
    color: var(--mp-muted);
    margin-bottom: 12px;
}

.mp-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mp-progress-fill {
    height: 100%;
    background: var(--mp-accent);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.mp-achievements {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--mp-muted);
}

.mp-achievement-icons {
    display: flex;
    gap: 6px;
}

.mp-ach-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* ── Comments ── */
.mp-comment-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mp-border);
}

.mp-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-comment-avatar-ph {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--mp-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--mp-text);
    flex-shrink: 0;
}

.mp-comment-content {
    flex: 1;
    min-width: 0;
}

.mp-comment-author {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mp-link);
}

.mp-comment-text {
    font-size: 0.92rem;
    color: var(--mp-text);
    margin-top: 5px;
    line-height: 1.5;
}

.mp-comment-time {
    font-size: 0.75rem;
    color: var(--mp-muted);
    margin-top: 5px;
}

.mp-comment-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--mp-border);
    border-radius: 4px;
    color: var(--mp-text);
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mp-comment-input:focus {
    outline: none;
    border-color: var(--mp-accent);
}

.mp-comment-input::placeholder {
    color: var(--mp-muted);
}

.mp-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--mp-muted);
    margin-top: 6px;
}

/* ═══ SIDEBAR ═══ */
.mp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: stretch;
}

.mp-side-card {
    background: var(--mp-card);
    border-radius: 4px;
    padding: 18px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
}

.mp-side-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mp-title-color);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-side-title i {
    color: var(--mp-accent);
    font-size: 0.95rem;
}

.mp-side-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mp-side-stat {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.mp-side-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mp-accent);
}

.mp-side-stat-label {
    font-size: 0.72rem;
    color: var(--mp-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.mp-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-badge {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.mp-badge:hover {
    transform: scale(1.1);
}

.mp-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 4px;
    color: var(--mp-text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.mp-nav-item i {
    width: 20px;
    text-align: center;
    color: var(--mp-muted);
    font-size: 0.95rem;
}

.mp-nav-item:hover {
    background: var(--mp-card-hover);
    color: #fff;
}

.mp-friend-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.mp-friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.mp-friend-avatar-ph {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--mp-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--mp-text);
}

.mp-friend-info {
    flex: 1;
    min-width: 0;
}

.mp-friend-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-friend-status {
    font-size: 0.75rem;
    color: var(--mp-muted);
}

.mp-friend-count {
    font-size: 0.75rem;
    color: var(--mp-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ═══ EDIT PANEL ═══ */
.mp-edit-panel {
    background: var(--mp-card);
    border-radius: 4px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
    overflow: hidden;
    animation: mpFadeIn 0.3s ease;
}

@keyframes mpFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mp-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--mp-header);
    border-bottom: 1px solid var(--mp-border);
}

.mp-edit-header h2 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-edit-header h2 i {
    color: var(--mp-accent);
}

.mp-close-btn {
    background: none;
    border: none;
    color: var(--mp-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mp-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mp-edit-tabs {
    display: flex;
    border-bottom: 1px solid var(--mp-border);
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.mp-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    color: var(--mp-muted);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid transparent;
}

.mp-tab i {
    font-size: 0.95rem;
}

.mp-tab:hover {
    color: var(--mp-text);
    background: rgba(255, 255, 255, 0.05);
}

.mp-tab.active {
    color: var(--mp-accent);
    border-bottom-color: var(--mp-accent);
    background: rgba(231, 76, 60, 0.1);
}

.mp-edit-body {
    padding: 28px;
}

.mp-tab-content {
    display: none;
}

.mp-tab-content.active {
    display: block;
    animation: mpFadeIn 0.25s ease;
}

.mp-form-group {
    margin-bottom: 20px;
}

.mp-form-group label {
    display: block;
    font-size: 0.92rem;
    color: var(--mp-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-form-group label i {
    color: var(--mp-accent);
    font-size: 0.9rem;
}

.mp-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--mp-border);
    border-radius: 4px;
    color: var(--mp-text);
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mp-input:focus {
    outline: none;
    border-color: var(--mp-accent);
}

.mp-input::placeholder {
    color: var(--mp-muted);
}

.mp-input-readonly {
    background: rgba(0, 0, 0, 0.45) !important;
    color: var(--mp-muted) !important;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.mp-input-with-btn {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.mp-input-with-btn .mp-input {
    flex: 1;
}

.mp-email-change-btn {
    padding: 10px 16px;
    background: transparent;
    color: var(--mp-link);
    border: 1px solid rgba(102, 193, 245, 0.3);
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-email-change-btn:hover {
    background: rgba(102, 193, 245, 0.1);
    border-color: var(--mp-link);
}

.mp-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--mp-border);
    border-radius: 4px;
    color: var(--mp-text);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mp-textarea:focus {
    outline: none;
    border-color: var(--mp-accent);
}

.mp-save-btn {
    padding: 14px 32px;
    background: var(--mp-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.mp-save-btn:hover {
    background: var(--mp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

.mp-background-copy {
    font-size: 0.82rem;
    color: var(--mp-muted);
    margin: 0 0 12px;
}

.mp-background-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mp-background-preview {
    width: 180px;
    height: 92px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background-color: rgba(11, 17, 27, 0.72);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mp-info-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.mp-info-label {
    font-size: 0.92rem;
    color: var(--mp-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-info-label i {
    color: var(--mp-accent);
    font-size: 0.9rem;
}

.mp-info-value {
    font-size: 0.95rem;
    color: var(--mp-text);
    font-weight: 500;
}

.mp-privacy-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--mp-border);
}

.mp-privacy-section h4 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-privacy-section h4 i {
    color: var(--mp-accent);
}

/* ═══ EMAIL CHANGE MODAL ═══ */
.mp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mpFadeIn 0.2s ease;
}

.mp-modal {
    background: var(--mp-header);
    border-radius: 6px;
    border: 1px solid var(--mp-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    width: 460px;
    max-width: 95vw;
    overflow: hidden;
}

.mp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mp-border);
}

.mp-modal-header h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-modal-header h3 i {
    color: var(--mp-link);
}

.mp-modal-body {
    padding: 20px;
}

.mp-modal--crop {
    width: 560px;
    max-width: 96vw;
}

/* ═══ AVATAR UPLOAD ═══ */
.mp-avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mp-avatar-upload-preview {
    flex-shrink: 0;
}

.mp-avatar-upload-preview .mp-avatar,
.mp-avatar-upload-preview .mp-avatar-ph {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #3d4450;
}

.mp-avatar-upload-preview .mp-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--mp-text);
    background: rgba(42, 71, 94, 0.8);
}

.mp-avatar-upload-actions {
    flex: 1;
    min-width: 180px;
}

.mp-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3d4450;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-upload-btn:hover {
    background: #4d5560;
}

.mp-crop-container {
    background: #0e1015;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--mp-border);
}

.mp-crop-container canvas {
    display: block;
    max-width: 100%;
    cursor: grab;
}

.mp-crop-container canvas:active {
    cursor: grabbing;
}

/* ═══ BANNER SELECTOR ═══ */
.mp-modal--banner {
    width: 680px;
    max-width: 96vw;
}

.mp-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.mp-banner-option {
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.15s;
    background: rgba(0,0,0,0.3);
    position: relative;
}

.mp-banner-option:hover {
    border-color: var(--mp-link);
    transform: translateY(-2px);
}

.mp-banner-option--active {
    border-color: #e74c3c;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.4);
}

.mp-banner-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.mp-banner-thumb--default {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 71, 94, 0.5);
    color: var(--mp-muted);
}

.mp-banner-option-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--mp-text);
    padding: 6px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ TITLES ═══ */
.mp-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 3px;
    margin-top: 2px;
    line-height: 1.4;
}

.mp-title i {
    font-size: 0.72rem;
}

.mp-title--gold {
    background: linear-gradient(135deg, #ffd700, #f0c040, #ffd700);
    color: #1a1a2e;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
    animation: mpGoldShimmer 3s ease-in-out infinite;
}

.mp-title--silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #c0c0c0);
    color: #2a2a3a;
}

.mp-title--bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d, #cd7f32);
    color: #1a1a2e;
}

@keyframes mpGoldShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .mp-container {
        width: 96%;
    }
    .mp-page-bg-edit-btn {
        min-width: 172px;
        height: 50px;
    }
    .mp-header {
        min-height: 332px;
    }
    .mp-banner-wrap {
        min-height: 332px;
    }
    .mp-banner {
        height: 332px;
    }
    .mp-header-content {
        padding: 22px 28px 24px;
        gap: 20px;
    }
    .mp-header-right {
        gap: 16px;
    }
    .mp-grid {
        grid-template-columns: 1fr;
    }
    .mp-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .mp-container {
        width: min(100% - 24px, 100%);
        padding: 16px 0 20px;
    }
    .mp-page-bg-edit-btn {
        min-width: 146px;
        height: 48px;
        border-radius: 16px;
        padding-right: 10px;
    }
    .mp-page-bg-edit-thumb {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .mp-page-bg-edit-label {
        font-size: 0.7rem;
    }
    .mp-page-bg-edit-state {
        font-size: 0.64rem;
    }
    .mp-page-shell::before {
        background-attachment: scroll;
    }
    .mp-header {
        min-height: 376px;
        margin-bottom: 20px;
    }
    .mp-banner-wrap {
        min-height: 376px;
    }
    .mp-banner {
        height: 376px;
    }
    .mp-banner-edit-btn {
        right: 10px;
        bottom: 10px;
        padding: 7px 12px;
        font-size: 0.76rem;
    }
    .mp-header-content {
        padding: 18px 18px 22px;
        gap: 14px;
        min-height: 184px;
        align-items: center;
        flex-wrap: wrap;
    }
    .mp-avatar-wrap {
        padding: 8px;
    }
    .mp-avatar,
    .mp-avatar-ph {
        width: 108px;
        height: 108px;
    }
    .mp-info {
        width: 100%;
        padding-bottom: 0;
    }
    .mp-username {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        line-height: 1.15;
    }
    .mp-title {
        justify-content: center;
        flex-wrap: wrap;
    }
    .mp-status {
        font-size: 0.88rem;
    }
    .mp-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    .mp-level-badge {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1rem;
    }
    .mp-edit-btn {
        padding: 11px 18px;
        font-size: 0.88rem;
        justify-content: center;
    }
    .mp-section,
    .mp-side-card,
    .mp-edit-body {
        padding: 18px;
    }
    .mp-activity-item {
        flex-direction: column;
        gap: 12px;
    }
    .mp-activity-img {
        width: 100%;
        height: 150px;
    }
    .mp-comment-row,
    .mp-friend-item,
    .mp-avatar-upload,
    .mp-input-with-btn,
    .mp-info-row {
        align-items: flex-start;
    }
    .mp-input-with-btn,
    .mp-avatar-upload,
    .mp-info-row {
        flex-direction: column;
    }
    .mp-email-change-btn,
    .mp-save-btn {
        width: 100%;
        justify-content: center;
    }
    .mp-side-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mp-badges {
        gap: 10px;
    }
    .mp-badge {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    .mp-edit-header {
        padding: 16px 18px;
    }
    .mp-edit-tabs {
        flex-wrap: wrap;
    }
    .mp-tab {
        flex: 1 1 50%;
        min-width: 0;
        justify-content: center;
        padding: 14px 12px;
        font-size: 0.86rem;
    }
    .mp-modal,
    .mp-modal--crop,
    .mp-modal--banner {
        width: min(96vw, 680px);
    }
    .mp-modal-body {
        padding: 16px;
    }
    .mp-banner-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    .mp-background-preview {
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    .mp-container {
        width: calc(100% - 16px);
        padding: 12px 0 18px;
    }
    .mp-page-bg-edit-btn {
        min-width: auto;
        width: 46px;
        height: 46px;
        padding: 6px;
        justify-content: center;
        border-radius: 14px;
        gap: 0;
    }
    .mp-page-bg-edit-copy {
        display: none;
    }
    .mp-page-bg-edit-thumb {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .mp-page-bg-edit-icon {
        display: none;
    }
    .mp-header {
        min-height: 390px;
        padding-bottom: 0;
    }
    .mp-banner-wrap {
        min-height: 390px;
    }
    .mp-banner {
        height: 390px;
    }
    .mp-header-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin: 0;
        padding: 72px 16px 18px;
        min-height: 218px;
        background: linear-gradient(180deg, rgba(11, 17, 27, 0) 0%, rgba(11, 17, 27, 0.28) 24%, rgba(11, 17, 27, 0.82) 70%, rgba(11, 17, 27, 0.96) 100%);
    }
    .mp-avatar-wrap {
        padding: 8px;
        margin-bottom: 0;
    }
    .mp-avatar, .mp-avatar-ph {
        width: 110px;
        height: 110px;
    }
    .mp-info {
        width: 100%;
        padding: 0 10px;
    }
    .mp-username {
        font-size: 1.2rem;
        line-height: 1.15;
        margin-bottom: 8px;
    }
    .mp-header-right {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }
    .mp-edit-btn {
        width: auto;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    .mp-section,
    .mp-side-card,
    .mp-edit-body {
        padding: 16px;
    }
    .mp-activity-item {
        flex-direction: column;
    }
    .mp-activity-img {
        width: 100%;
        height: 136px;
    }
    .mp-achievements {
        flex-direction: column;
        align-items: flex-start;
    }
    .mp-comment-row {
        gap: 10px;
    }
    .mp-side-stats {
        grid-template-columns: 1fr 1fr;
    }
    .mp-edit-tabs {
        flex-wrap: wrap;
    }
    .mp-tab {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    .mp-banner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .mp-page-bg-edit-btn {
        width: 44px;
        height: 44px;
        padding: 5px;
    }
    .mp-page-bg-edit-thumb {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 10px;
    }
    .mp-header {
        min-height: 360px;
        padding-bottom: 0;
    }
    .mp-banner-wrap {
        min-height: 360px;
    }
    .mp-banner {
        height: 360px;
    }
    .mp-banner-edit-btn {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
    .mp-header-content {
        margin: 0;
        padding: 68px 12px 16px;
        min-height: 202px;
    }
    .mp-avatar,
    .mp-avatar-ph {
        width: 94px;
        height: 94px;
    }
    .mp-username {
        font-size: 1.32rem;
    }
    .mp-status {
        justify-content: center;
        font-size: 0.83rem;
    }
    .mp-level-badge {
        width: 42px;
        height: 42px;
        font-size: 0.92rem;
    }
    .mp-header-right {
        gap: 10px;
        padding: 0 6px;
    }
    .mp-edit-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    .mp-section-title,
    .mp-edit-header h2 {
        font-size: 1rem;
    }
    .mp-side-stats {
        grid-template-columns: 1fr;
    }
    .mp-tab {
        flex-basis: 100%;
    }
    .mp-banner-grid {
        grid-template-columns: 1fr;
    }
}
