/* Hồ sơ cá nhân — light theme đồng bộ auth/security */
html body.profile-page .profile-wrap {
    width: 95%;
    max-width: 780px;
    margin: 0 auto;
}
html body.profile-page .profile-glass-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px;
    color: #111827;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
html body.profile-page .profile-header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
html body.profile-page .profile-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
html body.profile-page .profile-avatar-slot {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    border: none;
    overflow: visible;
    flex-shrink: 0;
}
html body.profile-page #profLargeAvatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
html body.profile-page .prof-avatar-loading {
    border-radius: 12px;
}
html body.profile-page .prof-avatar-edit-anchor {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
html body.profile-page .prof-avatar-edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
html body.profile-page .prof-avatar-edit-btn:hover {
    background: #f9fafb;
}
html body.profile-page .prof-avatar-edit-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
html body.profile-page .prof-avatar-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 148px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 10;
}
html body.profile-page .prof-avatar-menu::before {
    content: '';
    position: absolute;
    top: auto;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transform: translateX(-50%) rotate(45deg);
}
html body.profile-page .prof-avatar-menu[hidden] {
    display: none !important;
}
html body.profile-page .prof-avatar-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    border-radius: 6px;
}
html body.profile-page .prof-avatar-menu button:hover {
    background: #f3f4f6;
}
html body.profile-page .profile-meta-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
}
html body.profile-page .profile-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
html body.profile-page .profile-username-line {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
html body.profile-page .profile-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
html body.profile-page .profile-top-actions a {
    text-decoration: none;
}
html body.profile-page .prof-field-input {
    background: #fff !important;
    background-color: #fff !important;
}
html body.profile-page #profCountry,
html body.profile-page .custom-form-group select.prof-field-input {
    background: #fff !important;
    background-color: #fff !important;
    color: #111827 !important;
    appearance: auto;
    -webkit-appearance: menulist;
}
html body.profile-page #profCountry:hover,
html body.profile-page #profCountry:focus,
html body.profile-page .custom-form-group select.prof-field-input:hover,
html body.profile-page .custom-form-group select.prof-field-input:focus {
    background: #fff !important;
    background-color: #fff !important;
}
html body.profile-page .prof-field-locked,
html body.profile-page .prof-field-input:disabled,
html body.profile-page .prof-field-input[readonly][disabled] {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    opacity: 0.92;
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
}
html body.profile-page .prof-password-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
html body.profile-page .prof-password-toggle {
    align-self: flex-start;
}
html body.profile-page .prof-password-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
html body.profile-page .prof-password-fields[hidden] {
    display: none !important;
}
html body.profile-page .prof-field-error {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
}
html body.profile-page .prof-field-input.prof-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}
html body.profile-page .prof-field-input:focus:not(:disabled):not(.prof-field-locked) {
    border-color: #5B5FF8;
    box-shadow: 0 0 0 3px rgba(91, 95, 248, 0.08);
}
html body.profile-page .custom-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
