/* Profile page only. */

body {
    background: #0B0F17;
}

body .page-wrapper:has(.standalone-profile-box) h1.em-page-title {
    color: #E8ECF4;
    font-weight: 600;
}

.page-wrapper .standalone-profile-box {
    background: #151B27;
    border: 1px solid #252D3B;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.profile-pic-container img {
    border: 2px solid rgba(124, 58, 237, 0.65);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12), 0 0 14px rgba(124, 58, 237, 0.18);
}

#changePicBtn.edit-pic-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    background: #111722;
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #B69AFB;
    box-shadow: none;
}

#changePicBtn.edit-pic-btn:hover {
    background: rgba(124, 58, 237, 0.16);
    transform: none;
}

#changePicBtn .em-profile-pencil {
    width: 16px;
    min-width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: #B69AFB;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(182, 154, 251, 0.28));
}

.profile-form label,
.em-profile-pass-label {
    color: #A0AABC;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.em-profile-pass-label {
    margin-top: 15px;
}

.profile-form input {
    background: #111722;
    border: 1px solid #252D3B;
    color: #E8ECF4;
    border-radius: 10px;
    box-shadow: none;
}

.profile-form input[readonly] {
    color: #E8ECF4;
    opacity: 1;
    cursor: default;
}

.profile-form input:focus {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: none;
    outline: none;
}

#openChangePassBtn {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.38);
    background: rgba(109, 40, 217, 0.16);
    color: #E8ECF4;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

#openChangePassBtn:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: none;
    filter: none;
    box-shadow: none;
}

body.light-mode {
    background: #F1F5F9;
}

body.light-mode .page-wrapper:has(.standalone-profile-box) h1.em-page-title,
body.light-mode .profile-form input,
body.light-mode .profile-form input[readonly] {
    color: #0F172A;
}

body.light-mode .page-wrapper .standalone-profile-box,
body.light-mode #changePicBtn.edit-pic-btn {
    background: #F8F9FC;
    border-color: #E2E6EE;
}

body.light-mode .profile-form label,
body.light-mode .em-profile-pass-label {
    color: #64748B;
}

body.light-mode .profile-form input {
    background: #FFFFFF;
    border-color: #D5DBE6;
}

body.light-mode #openChangePassBtn {
    color: #1E293B;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.28);
}

body.light-mode #changePicBtn .em-profile-pencil {
    stroke: #7C3AED;
    filter: none;
}

body.light-mode .profile-pic-container img {
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.08), 0 0 12px rgba(124, 58, 237, 0.12);
}

@media (max-width: 768px) {
    .page-wrapper .standalone-profile-box {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .em-profile-pencil,
    .profile-pic-container img {
        filter: none;
    }
}
